Card

A card component that provides a container for content with optional header and footer sections. It supports separators between sections and customizable padding.

Props

NameDefaultType
separatorsfalseboolean
Adds separators between all sections (header, content, footer)
headerSeparatorfalseboolean
Adds a separator only after the header section
footerSeparatorfalseboolean
Adds a separator only before the footer section
paddingtrueboolean
Controls whether the card content has padding
headerAlignbaseline'start' | 'center' | 'end' | 'baseline'
Controls vertical alignment of items in the card header

Slots

NameAcceptsDescription
defaultanyThe main content of the card
headeranyContent to be displayed in the header section
header-endanyContent to be displayed at the end of the header section (right-aligned)
footeranyContent to be displayed in the footer section