Card

A content container on a panel surface with a hairline border and token-scaled padding. Compose it from CardHeader, CardTitle, CardDescription, CardAction, CardContent, and CardFooter.

Basic

size (sm / md / lg / xl, default lg) sets the padding scale.

Dataset
1,204 episodes · updated 2h ago
A container with a panel surface, a hairline border and token-scaled padding.

Collapsible

Set collapsible and provide collapsedContent (shown in place of the body when collapsed). defaultCollapsed controls the initial state.

Advanced settings
Body shown while expanded. Click the chevron to collapse to just the title row.

Props

Card

PropTypeDefaultDescription
size'sm' | 'md' | 'lg' | 'xl''lg'Padding scale.
collapsiblebooleanfalseEnable the collapse toggle.
collapsedContentReactNodeShown in place of the body while collapsed.
defaultCollapsedbooleanfalseInitial collapsed state.
classNamestringExtra classes.

Subcomponents (CardHeader, CardTitle, CardDescription, CardAction, CardContent, CardFooter) accept className and native <div> attributes. CardHeader also takes a size matching the card.