Skip to content
synccn

Flip Card

New

Card that flips in 3D to reveal its back.

Installation

$ pnpm dlx shadcn@latest add @synccn/flip-card

First time in this project? Connect synccn with one command.

Usage

import { FlipCard } from "@/components/ui/aurora";<FlipCard front={…} back={…} />

API reference

Generated from the component's TypeScript types, so it always matches the code.

FlipCard

Card that flips in 3D to show its back on click or Enter.

  • frontrequired
    React.ReactNode

    Content on the front face.

  • backrequired
    React.ReactNode

    Content on the back face.

  • height
    number

    Default 220

    Card height in pixels.

  • className
    string

    Extra classes for the root element.

Dependencies

Read from the component's imports when the site builds. The CLI installs all of these for you.

Helpers

npm packages

Accessibility

From the source

Read from this component's code when the site builds, so it can't drift.

  • ARIA attributes: aria-label, aria-pressed
  • Respects the reduced motion setting
  • Shows a visible focus ring for keyboard users