Loading preview
Depth Card
CardsA card that tilts toward the pointer while its layers rise off the surface, each to its own depth.
A payment card with a holographic foil that follows the pointer, and a flip to the back on click.
npx shadcn@latest add @venusui/holo-cardRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/holo-card.tsxThe code behind the preview above.
holo-card-demo.tsx
import { HoloCard } from "@/components/ui/holo-card"
export default function HoloCardDemo() {
return <HoloCard className="w-[min(24rem,calc(100vw-3rem))]" name="Priya Natarajan" last4="4821" expires="08/29" brand="Aurora" />
}
| Prop | Type | Default | Description |
|---|---|---|---|
| name | string | — | Card holder's name. |
| last4 | string | — | The last four digits; the rest show as dots. |
| expires | string | — | Expiry, e.g. “08/29”. |
| brand | string | "Aurora" | Wordmark in the top corner. |
| cvc | string | "123" | Shown on the back. Use a placeholder, never a real code. |
| max | number | 14 | Largest tilt in degrees. |
All <button> props except children; className sizes the card.
bg-[radial-gradient(...)] class, and the foil colors in its inline linear-gradient.aria-pressed that flips the card; its label reads the brand, last four digits, name and expiry.overflow-hidden or filter). Keep the card's wrapper free of those.Unknown registry "@venusui"npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.No components.json foundnpx shadcn@latest init in your project first.A card that tilts toward the pointer while its layers rise off the surface, each to its own depth.
A card that tilts in 3D toward the pointer, with a glare that follows it.
Cards arranged in a ring that turns in 3D, with buttons, arrow keys and announcements.