Skip to content

components/card

@fungi.computer/caps


@fungi.computer/caps / components/card

CardProps = object & HTMLAttributes<HTMLDivElement>>

Props accepted by Card.

optional variant?: "surface" | "outline" | "interactive"


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> > & 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.