Card

A container that groups related content and actions.

components/ui/card.tsx
Component
A short summary of what this card shows.

Card body content goes here.

Installation

npx betterone-ds add card

Parts

PartUse for
CardHeaderTitle and description block
CardTitleThe card heading
CardDescriptionShort supporting text
CardContentMain body
CardFooterActions

Accessibility

  • Use a heading level that fits the page outline.
  • If the whole card is a link, put the link on one element and keep the text clear.