Tilt card preview

Tilt card

A card that leans toward the pointer in 3D with a following glare.

  • Group
    Cards
  • Origin
    Adapted · beUI · source
  • License
    MIT
  • Added
    Oct 18
npx shadcn@latest add @deank/tilt-card

The registry stays private. Install from the repo with a GitHub token — see the README.

Usage

import { TiltCard } from "@/registry/components/tilt-card/tilt-card";

<TiltCard>Label</TiltCard>

Props

PropTypeDefaultDescription
childrenReactNode
max?number12Maximum tilt in degrees.
glare?booleantrueDraw a soft glare that follows the pointer.
className?string

When to use

Hero cards, product shots or profiles that react to the pointer.

When not to use

Dense UIs or anything users click repeatedly.

Related

Holographic card · Spotlight card · Card stack