Cards
CreativeFlip Card
A toggle button with click, or turns while hovered or focused. For flashcards, pricing details and bios.
Install
Included with Creative: needs your API key. Initialize and log in once.
npx @galactrex/ui add flip-cardUsage
import { FlipCard } from "@/components/galactrex/flip-card";
<FlipCard front={<p>Q</p>} back={<p>A</p>} className="h-48 w-72" />Source
Installs to components/galactrex/flip-card.tsx, with the shared motion primitives beside it.
Source for this component comes with its plan. Install it with the command above, or open your licensed copy here.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
front / back | ReactNode | — | Faces. |
trigger | "click" | "hover" | "click" | What flips it. |
axis | "y" | "x" | "y" | Turn axis. |
label | string | — | Flip action name. |
className | string | — | Extra classes for the outer element. |
Variants
- Flashcard. Question on front, answer on back.
Accessibility
- Click mode is a toggle button (aria-pressed); the hidden face is aria-hidden.
Motion and reduced motion
- Spring rotation with hidden backfaces.
- Reduced motion: a cross-fade.