Examples
Primary
Interactive
Header Only
Container
Secondary
Props
Card
A composable card component built on the V2 design system. Compose it withCardHeader, CardTitle, CardDescription, CardContent, and CardFooter for structured layouts.
The hierarchy prop drives the surface treatment (Primary vs Secondary) and the type prop drives the internal spacing (Default / Header Only / Container).
boolean
default:"true"
When
true, the card will take the full width of its container."primary" | "secondary"
default:"primary"
Visual hierarchy of the card.
boolean
default:"false"
When
true, applies the hover treatment for clickable cards.boolean
default:"false"
When
true, removes all internal padding."default" | "header-only" | "container"
default:"default"
Structural type of the card.
"filled" | "outlined" | "elevated" | "ghost"
deprecated
Legacy visual style variant.Deprecated. Use
hierarchy instead. When set, the card keeps its legacy V1 appearance for backwards compatibility.CardContent
Flexible content area of aCard. Its vertical padding follows the card type: default pads top and bottom, header-only pads only the top, and container removes the built-in padding entirely.
Takes no props of its own. Accepts all standard div attributes, including className.
CardDescription
Description text rendered below theCardTitle inside a CardHeader.
Takes no props of its own. Accepts all standard p attributes, including className.
CardFooter
Footer section of aCard. Renders children in a horizontal row with a gap.
Takes no props of its own. Accepts all standard div attributes, including className.
CardHeader
Header section of aCard. Renders a flex row with text content on the left and an optional trailing action element (e.g. icon) on the right.
ReactNode
Icon element displayed at the trailing end of the header.
CardTitle
Title element rendered inside aCardHeader. Adapts its type scale to the card hierarchy.
Takes no props of its own. Accepts all standard h1-h6 attributes, including className.
Exported types
Also exported from@fanvue/ui: CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardHierarchy, CardProps, CardTitleProps, CardType, CardVariant.
Setup: Installation · Theming