Flip card
A card that turns over to reveal the back.
Choose a Northwind plan
Turn a plan over to see what it includes
Team
$24 / seat / month
For teams that ship together.
Business
$48 / seat / month
For companies with review and compliance needs.
When to use
- Showing a short answer or detail on demand.
When not to use
- The back has long content.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/flip-card
Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
FlipCard
8 props
PropTypeDefault
front *ReactNode—
back *ReactNode—
flippedboolean—
defaultFlippedbooleanfalse
onFlippedChange((flipped: boolean) => void)—
frontLabelstring"Show details"
backLabelstring"Show front"
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It is built on native elements and keeps aria-hidden and aria-label in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/flip-card.mdThe index of every part is at /llms.txt.