Skip to content

zk-card ​

A card with an optional header, a body and an optional footer.

Props ​

PropTypeDefaultDescription
asstring'div'Root element (div, article, section...)
titlestring|nullnullText of the header, when there is no header slot
classstring|nullnullCSS class(es) merged onto the root element

Undeclared attributes forward to the root element.

Slots ​

SlotDescription
defaultBody of the card
headerReplaces the title in the header
footerFooter, shown only when given

Class hooks: card, card-header, card-body, card-footer.

Examples ​

Basic ​

blade
<x-zk-card title="Profile">
    Body
    <x-slot:footer>
        <a href="/edit">Edit</a>
    </x-slot>
</x-zk-card>

Documentation of 3.2.0 , built from c93e21f on 3.2.0 by pipeline #2919741884 on 2026-10-06.