Skip to main content
A card is a styled variant of a Section component with predefined border, padding and a title. Lay the content out with a Stack inside the card. Cards do not nest. A card rendered inside another card keeps its title and content but is shown without its own border, so containers never stack.

Example

src/app/pages/dashboard/page.tsx

Props

string
A short heading shown above the card’s content. Titles are truncated rather than wrapped, so keep them to a few words.
React.ReactNode
The content of the card, either text or other components.