Skip to content

Card

Card is a container for grouping related content. It supports an optional header slot, a body with configurable padding, and an optional footer slot.

Basic

Tailwind v4
vue
<Card>
  <p>Card content goes here.</p>
</Card>
Tailwind v4
vue
<Card>
  <template #header>
    <span>Equipment Status</span>
  </template>

  <p>All systems operational.</p>

  <template #footer>
    <Button variant="secondary" size="sm">View Details</Button>
  </template>
</Card>

Shadow

Tailwind v4
vue
<Card :shadow="true">
  Card with a subtle drop shadow.
</Card>

Padding sizes

Tailwind v4
vue
<Card padding="none">...</Card>
<Card padding="sm">...</Card>
<Card padding="md">...</Card>
<Card padding="lg">...</Card>

Props

PropTypeDefaultDescription
padding'none' | 'sm' | 'md' | 'lg''md'Body padding
shadowbooleanfalseAdds a subtle drop shadow

Slots

SlotDescription
defaultMain body content
headerOptional header — rendered above the body with a bottom border
footerOptional footer — rendered below the body with a top border and a light gray background

Private — Jetpack Labs internal use only