Card
shadcn's compositional card, dressed in Fluid Functionalism. Stacked, inline, or grid — borderless by default with fluid hover that previews where a click will land.
Installation
Install Card from the Fluid Effect UI registry.
Playground
Spring-tuned transitions calibrated across three tiers
Focus-visible rings and ARIA roles in every part
Swap radius, icons, and primitive at runtime
Tokens adapt to light and dark automatically
Basic
Spring-tuned transitions calibrated across three tiers
Focus-visible rings and ARIA roles in every part
Swap radius, icons, and primitive at runtime
Tokens adapt to light and dark automatically
Grid: 2-D fluid hover
Spring-tuned transitions calibrated across three tiers
Focus-visible rings and ARIA roles in every part
Swap radius, icons, and primitive at runtime
Tokens adapt to light and dark automatically
Outlined group
Spring-tuned transitions calibrated across three tiers
Focus-visible rings and ARIA roles in every part
Swap radius, icons, and primitive at runtime
Tokens adapt to light and dark automatically
Separated tiles
Spring-tuned transitions calibrated across three tiers
Focus-visible rings and ARIA roles in every part
Swap radius, icons, and primitive at runtime
Tokens adapt to light and dark automatically
Fully yours — compose anything
Selected
Spring-tuned transitions calibrated across three tiers
Focus-visible rings and ARIA roles in every part
Swap radius, icons, and primitive at runtime
Tokens adapt to light and dark automatically
API Reference
Types come from the public API. A dash indicates no default is documented here.
Card props
Public source| Prop | Type | Default |
|---|---|---|
onPress | NoInfer<Msg> | — |
href | string | — |
external | boolean | — |
label | string | — |
selected | boolean | false |
disabled | boolean | — |
dismissible | boolean | — |
dismissOnHover | boolean | true |
dismissLabel | string | 'Dismiss' |
onDismiss | NoInfer<Msg> | — |
index | number | -1 |
className | string | — |
group | CardGroupContext | — |
image | (context: CardContext) => View.Content<Msg, R> | — |
children | (context: CardContext) => View.Children<Msg, R> | Required |
shape | ShapeVariant | 'rounded' |
size | SizeVariant | 'default' |
surface | number | 1 |
CardGroup
| Prop | Type | Default |
|---|---|---|
orientation | CardOrientation | 'card' |
columns | number | 1 |
border | "none" | "outlined" | — |
separated | boolean | false |
selectedIndex | number | -1 |
activeIndex | number | null | null |
fluidHover | boolean | — |
reducedMotion | "user" | "always" | "never" | 'user' |
count | number | Required |
className | string | — |
children | (context: CardGroupContext) => View.Children<Msg, R> | Required |
shape | ShapeVariant | 'rounded' |
size | SizeVariant | 'default' |
surface | number | 1 |