-
Notifications
You must be signed in to change notification settings - Fork 1
Card
Lenny P. edited this page May 17, 2025
·
1 revision
These components provide a styled container (Card) with optional loading state and tooltip support, plus a Card.Title subcomponent for titles with an optional divider.
<x-card :loading="true" tooltip="Loading card">
<x-divider />
<x-button variant="outline" loading="test" wire:click="test">
Test
</x-button>
</x-card>
<x-card>
<x-card.title divider="true">
Card Title
</x-card.title>
<p>Card content goes here...</p>
</x-card>-
loading(bool): When true, shows a pulsing skeleton placeholder instead of the content. -
tooltip(string|null): Tooltip text shown on hover using Alpine.js. - Accepts all other HTML attributes like class, id, etc., merged with default styling.
-
divider(bool): Whether to display a divider line below the title. Default istrue. - Renders title text styled as bold and large font.
The Card component is a flexible content container with padding, border, and background styling. It supports a loading skeleton to indicate asynchronous loading states and can display tooltips on hover. The Card.Title subcomponent adds a styled heading with an optional dividing line to visually separate content sections within the card.