Card

Preview

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/card

API Reference

Card

variant?
"outlined" | "muted"

Default "outlined".

Defaultoutlined
size?
"compact" | "default"

Spacing for every part. Default "default".

Defaultdefault
interactive?
boolean

Hover and press feedback, for a card that is one target as a whole. Visual only: the card never takes focus, so put the control that owns it inside and stretch it with `CARD_TARGET_CLASS`.

Defaultfalse
selected?
boolean

Marks a selectable card as chosen. Visual only; the control inside carries the state.

Defaultfalse
className?
string
Default—

CardHeader

className?
string
Default—

CardTitle

as?
"div" | "h2" | "h3" | "h4"

Heading level, when the card starts a section. Default "div".

Defaultdiv
className?
string
Default—

CardDescription

className?
string
Default—

CardAction

className?
string
Default—

CardContent

className?
string
Default—

CardFooter

className?
string
Default—
Also on React Native. Composable surfaces, selectable with press feedback.

Updated