Control the card style by supplying the style="" attribute.
The Evil Rabbit Jumped over the Fence
The Evil Rabbit Jumped over the Fence
The Evil Rabbit Jumped over the Fence
The Evil Rabbit Jumped over the Fence
The Evil Rabbit Jumped over the Fence
The Evil Rabbit Jumped over the Fence
<divclass="flex flex-col gap-y-4"><x-card><x-card.header><x-card.title:as-heading="false">The Evil Rabbit Jumped over the Fence</x-card.title></x-card.header><x-card.footerclass="justify-end"><x-btnsize="sm"style="ghost">Cancel</x-btn><x-btnsize="sm">Update</x-btn></x-card.footer></x-card><x-cardstyle="ghost"><x-card.header><x-card.title:as-heading="false">The Evil Rabbit Jumped over the Fence</x-card.title></x-card.header><x-card.footerclass="justify-end"><x-btnsize="sm"style="ghost">Cancel</x-btn><x-btnsize="sm"style="secondary">Update</x-btn></x-card.footer></x-card><x-cardstyle="success"><x-card.header><x-card.title:as-heading="false">The Evil Rabbit Jumped over the Fence</x-card.title></x-card.header><x-card.footerclass="justify-end"><x-btnsize="sm"style="ghost">Cancel</x-btn><x-btnsize="sm"style="success">Update</x-btn></x-card.footer></x-card><x-cardstyle="info"><x-card.header><x-card.title:as-heading="false">The Evil Rabbit Jumped over the Fence</x-card.title></x-card.header><x-card.footerclass="justify-end"><x-btnsize="sm"style="ghost">Cancel</x-btn><x-btnsize="sm"style="info">Update</x-btn></x-card.footer></x-card><x-cardstyle="warning"><x-card.header><x-card.title:as-heading="false">The Evil Rabbit Jumped over the Fence</x-card.title></x-card.header><x-card.footerclass="justify-end"><x-btnsize="sm"style="ghost">Cancel</x-btn><x-btnsize="sm"style="warning">Update</x-btn></x-card.footer></x-card><x-cardstyle="danger"><x-card.header><x-card.title:as-heading="false">The Evil Rabbit Jumped over the Fence</x-card.title></x-card.header><x-card.footerclass="justify-end"><x-btnsize="sm"style="ghost">Cancel</x-btn><x-btnsize="sm"style="danger">Delete</x-btn></x-card.footer></x-card></div>
For consistency the x-card.title component can be used within the x-card.header component. The x-card.titleextends the x-heading component and sets the heading-level to 3 by default. Alternatively it's also possible to simply provide the native HTML headings directly.
Cards will automatically modify the x-list-group component styling to match the card. You can use x-list-group components within either, the x-card.body or x-card.footer components, or directly within the x-card component.
Webhook Details
Details the webhook activity.
Status
Active
Last Activity
2 months ago
<x-card><x-card.header><x-card.title>Webhook Details</x-card.title><x-paragraphsize="sm">Details the webhook activity.</x-paragraph></x-card.header><x-card.body><x-list-group><x-list-group.item><x-slot:title> Status</x-slot:title><x-badgestyle="success">Active</x-badge></x-list-group.item><x-list-group.item><x-slot:title> Last Activity</x-slot:title> 2 months ago</x-list-group.item></x-list-group></x-card.body></x-card>
Webhook Details
Details the webhook activity.
Status
Active
Last Activity
2 months ago
<x-card><x-card.header><x-card.title>Webhook Details</x-card.title><x-paragraphsize="sm">Details the webhook activity.</x-paragraph></x-card.header><x-list-group><x-list-group.item><x-slot:title> Status</x-slot:title><x-badgestyle="success">Active</x-badge></x-list-group.item><x-list-group.item><x-slot:title> Last Activity</x-slot:title> 2 months ago</x-list-group.item></x-list-group></x-card>