Platform uptime
99.98%
Availability across all regions this quarter.
Flip for the breakdown
A free flip card component with an accessible 3D reveal.
Flip Card is a free card component for Next.js and React, styled with Tailwind, that flips on its Y axis to reveal a back face. Click, Enter or Space toggle the flip, and on a fine pointer it can also flip on hover, so the reveal works for mouse, keyboard and touch alike.
The card is a real toggle button whose aria-pressed reflects the flipped state, and the face that is currently turned away is set inert and aria-hidden so Tab and assistive tech only ever reach the visible side. Both faces share one fixed box, so the flip is transform only with zero layout shift, and people who prefer reduced motion get an opacity crossfade with no rotation.
Platform uptime
99.98%
Availability across all regions this quarter.
Flip for the breakdown
Add the @te registry to your components.json once:
{
"registries": {
"@te": "https://templateempire.io/r/{name}.json"
}
}Then install the component:
npx shadcn@latest add @te/card-flip-3dimport { FlipCard } from "@/components/ui/card-flip-3d";
export default function Page() {
return (
<FlipCard
label="Flip to see the details"
front={
<div className="p-6">
<p className="text-4xl font-semibold">99.98%</p>
<p className="text-muted">Uptime this quarter</p>
</div>
}
back={
<div className="p-6">
<p className="font-medium">Edge 99.99%, API 99.97%</p>
</div>
}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
| front | ReactNode | required | Front face content (informational only, no interactive controls). |
| back | ReactNode | required | Back face content (informational only, no interactive controls). |
| label | string | required | Accessible name for the flip control, for example "Flip to see details". |
| flipOnHover | boolean | true | Also flip on fine-pointer hover. Click and keyboard always work and never depend on hover. |
| className | string | undefined | Additional classes merged onto the card root. |
Set the card's Tier 3 perspective property to tune the depth of the 3D flip. A smaller value exaggerates the turn, a larger value flattens it. The default falls back to 1200px, so a fresh shadcn installation does not need Template Empire tokens.
:root {
--card-flip-perspective: 900px;
}