Component
Card
A compound surface for grouping content: elevated, outlined, or interactive with a hover lift and optional 3D tilt.
Playground
Strawberry mochi
Soft, squishy and a little bit pink.
Hand-made every morning.
import {
ChibiCard,
ChibiCardContent,
ChibiCardDescription,
ChibiCardFooter,
ChibiCardHeader,
ChibiCardTitle,
} from '@chibi-ui/react/card';
<ChibiCard variant="interactive" tilt>
<ChibiCardHeader>
<ChibiCardTitle>Strawberry mochi</ChibiCardTitle>
<ChibiCardDescription>Soft, squishy and a little bit pink.</ChibiCardDescription>
</ChibiCardHeader>
<ChibiCardContent>Hand-made every morning.</ChibiCardContent>
<ChibiCardFooter>
<ChibiButton size="sm">Add to box</ChibiButton>
</ChibiCardFooter>
</ChibiCard>Import
import {
ChibiCard,
ChibiCardHeader,
ChibiCardTitle,
ChibiCardDescription,
ChibiCardContent,
ChibiCardFooter,
} from '@chibi-ui/react/card';Examples
<ChibiCard asChild variant="interactive" tilt>
<a href="/recipes/matcha">
<ChibiCardHeader>
<ChibiCardTitle asChild>
<h2>Matcha latte</h2>
</ChibiCardTitle>
<ChibiCardDescription>Ready in 5 minutes</ChibiCardDescription>
</ChibiCardHeader>
</a>
</ChibiCard>Accessibility
- Make an interactive card a single link with asChild. It then has one tab stop and an accessible name taken from its content.
- ChibiCardTitle renders an <h3> by default. Use asChild to pick the right heading level for your page outline.
- The tilt only follows a mouse: it is turned off for touch and under prefers-reduced-motion. It writes CSS variables on animation frames, so pointer moves never re-render React.
API reference
ChibiCard
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | 'elevated' | 'outlined' | 'interactive' | 'elevated' | Visual style. |
| tilt | boolean | false | 3D tilt + glare following the mouse (interactive variant only). |
| asChild | boolean | false | Render the child element. |
ChibiCardTitle
| Prop | Type | Default | Description |
|---|---|---|---|
| asChild | boolean | false | Use your own heading level. |