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
<divclass="flex flex-col gap-y-4"><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="default">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="default">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="default">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="default">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 either 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:as-heading="false">Webhook Details</x-card.title></x-card.header><x-card.bodyclass="space-y-6"><x-paragraph>Details the webhook activity.</x-paragraph><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>
<x-card>
<x-card.header>
<x-card.title :as-heading="false">Webhook Details</x-card.title>
</x-card.header>
<x-card.body class="space-y-6">
<x-paragraph>Details the webhook activity.</x-paragraph>
<x-list-group>
<x-list-group.item>
<x-slot:title>
Status
</x-slot:title>
<x-badge style="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:as-heading="false">Webhook Details</x-card.title></x-card.header><x-card.body><x-paragraph>Details the webhook activity.</x-paragraph></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>
<x-card>
<x-card.header>
<x-card.title :as-heading="false">Webhook Details</x-card.title>
</x-card.header>
<x-card.body>
<x-paragraph>Details the webhook activity.</x-paragraph>
</x-card.body>
<x-list-group>
<x-list-group.item>
<x-slot:title>
Status
</x-slot:title>
<x-badge style="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>