Skip to content
synccn

Tilt Card

3D tilt with glare that follows the pointer.

Membership card

Move your pointer across the card.

Installation

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

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

Usage

import { TiltCard } from "@/components/ui/spotlight-card";<TiltCard>…</TiltCard>

API reference

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

TiltCard

3D tilt that follows the pointer, with a soft glare.

  • max
    number

    Default 10

    Maximum tilt in degrees.

  • children
    React.ReactNode

    Content to render.

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

No ARIA roles, key handling or motion settings in its source. It renders plain elements, so its accessibility comes from the content and labels you give it.