nori-ui

Card

Container surface for grouping related content with optional header, body, and footer.

2.4 kBgzipped

At a glance

  • Compose Card with CardHeader, CardTitle, CardDescription, CardContent, and CardFooter for the conventional layout.
  • Card is a content container — use a Dialog for floating surfaces.
  • CardTitle ships with heading semantics so screen readers announce sections in document order.

Preview

Direction:

Anatomy

SubcomponentRole
CardOuter surface — border, background, rounded corners.
CardHeaderTop section with comfortable padding.
CardTitleHeading text inside the header. Renders with role="heading".
CardDescriptionMuted subtitle paired with the title.
CardContentBody content area.
CardFooterFooter row — actions sit here, separated by a divider.

You don't have to use the subcomponents — Card accepts any children directly when you want a different layout. The subcomponents exist so the most common case is one import line and obvious spacing.

Props

PropTypeDefaultDescription
classNamestring

CardHeader / CardContent / CardFooter

PropTypeDefaultDescription
classNamestring

CardTitle / CardDescription

PropTypeDefaultDescription
classNamestring
testIDstring

On this page

Preview theme