Skip to content

components/card

CardProps = object & HTMLAttributes<HTMLDivElement>>

Props accepted by Card.

optional variant?: "surface" | "outline" | "interactive" | "arcade" | "arcadeSpotlight" | "arcadeStage" | "arcadeEmpty" | "game" | "fit" | "gameShare"

optional density?: "regular" | "compact"

Reduce card section padding when several related details share a page.


CenteredCardProps = CardProps & object

Props accepted by CenteredCard.

optional width?: "default" | "wide"


CardHeaderProps = object & HTMLAttributes<HTMLDivElement>>

A card header layout with optional centered alignment.

optional alignment?: "start" | "center"

const Card: ForwardRefExoticComponent<object & HTMLAttributes<HTMLDivElement> > & RefAttributes<HTMLDivElement>>>>

A presentational card shell.


const CenteredCard: ForwardRefExoticComponent<object & HTMLAttributes<HTMLDivElement> > & object & RefAttributes<HTMLDivElement>>>>

Center one primary card in a welcoming, viewport-filling page stage.


const CardHeader: ForwardRefExoticComponent<object & HTMLAttributes<HTMLDivElement> > & RefAttributes<HTMLDivElement>>>>

Render a Caps card header with the requested alignment.


const CardTitle: ForwardRefExoticComponent<HTMLAttributes<HTMLHeadingElement> > & RefAttributes<HTMLHeadingElement>>>>

A card title element.


const CardDescription: ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> > & RefAttributes<HTMLParagraphElement>>>>

A card supporting-description element.


const CardContent: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> > & RefAttributes<HTMLDivElement>>>>

A card body layout.


const CardFooter: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> > & RefAttributes<HTMLDivElement>>>>

A card footer layout.