Account

Cards

Creative

Flip 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.

Terminal
npx @galactrex/ui add flip-card

Usage

Example
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.

See plans

Props

PropTypeDefaultDescription
front / backReactNode—Faces.
trigger"click" | "hover""click"What flips it.
axis"y" | "x""y"Turn axis.
labelstring—Flip action name.
classNamestring—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.