Components

Card

The shadcn/ui Card with smooth border and shadow transitions and an interactive mode for clickable cards — plus three animated React card blocks built with Motion: a subtle cursor-aware border highlight, a gentle 3D tilt card, and a loading card that crossfades from a shimmer skeleton.

  • Drop-in shadcn API
  • Server Component friendly
  • Motion blocks
  • prefers-reduced-motion
Edge functions
Run code in the region closest to each request.
GPU instances
Spin up an H100 in seconds. Pay by the minute.
A smaller radius keeps the highlight tight.

Installation

$ npx shadcn@latest add https://duskui.com/r/card.json

Replaces components/ui/card.tsx with the same parts and data-slot attributes, so existing cards keep working. The base Card is CSS-only — no "use client" needed.

Usage

plan-card.tsx
import { Button } from "@/components/ui/button"
import {
  Card,
  CardContent,
  CardDescription,
  CardFooter,
  CardHeader,
  CardTitle,
} from "@/components/ui/card"

export function PlanCard() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>Pro plan</CardTitle>
        <CardDescription>For teams shipping every day.</CardDescription>
      </CardHeader>
      <CardContent>$24 / month</CardContent>
      <CardFooter>
        <Button>Upgrade</Button>
      </CardFooter>
    </Card>
  )
}

Examples

Default

Header, title, description, an optional CardAction slot in the top-right, content and footer — the exact shadcn/ui structure.

Pro plan
For teams shipping every day.
Popular

$24 / month

  • Unlimited projects
  • Preview deployments
  • Priority support

Interactive link cards

Add interactive for clickable cards: a subtle border and background change on hover and a focus-visible ring. Combine it with asChild to render a real link, so the whole card is one keyboard stop.

Blocks

Ready-made variations composed from the base component with Motion. Each installs on its own and pulls in its dependencies automatically.

Glow Card

The 1px border catches a faint highlight where the cursor is, with a barely visible tint on the surface. The highlight follows the pointer through motion values, so it never re-renders React, and it also shows when a child receives keyboard focus.

Edge functions
Run code in the region closest to each request.
GPU instances
Spin up an H100 in seconds. Pay by the minute.
A smaller radius keeps the highlight tight.
$ npx shadcn@latest add https://duskui.com/r/glow-card.json
PropTypeDefaultDescription
radiusnumber160Radius of the highlight in px.
colorstring"#ffffff"Any CSS color, mixed in at low opacity.

Tilt Card

A gentle 3D tilt toward the cursor on damped springs, with an optional, barely visible glare. Give elements inside the card parts [transform:translateZ(24px)] to lift them off the surface. Mouse only (never hijacks touch scrolling) and completely still under reduced motion.

Design system audit
Move a mouse over the card and it tilts gently toward the cursor.
$ npx shadcn@latest add https://duskui.com/r/tilt-card.json
PropTypeDefaultDescription
maxTiltnumber6Maximum rotation in degrees.
hoverScalenumber1Scale while hovered; 1 disables it.
glarebooleanfalseShow a faint light reflection that follows the cursor.
perspectivenumber900CSS perspective in px. Lower is more dramatic.
containerClassNamestring—Classes for the wrapper that receives pointer events.

Loading Card

Shows a shimmering skeleton while loading, then crossfades the real content in while the height springs to fit — nothing below the card jumps. Build custom placeholders with the exported Shimmer block. Press Reload to replay.

Loading profile
$ npx shadcn@latest add https://duskui.com/r/loading-card.json
PropTypeDefaultDescription
loadingbooleanfalseShow the skeleton instead of children.
skeletonReactNode<CardSkeleton />Custom placeholder built from <Shimmer />.
loadingLabelstring"Loading"Announced to screen readers while loading.

API Reference

Card accepts every <div> prop plus the two below. The other parts (CardHeader, CardTitle, CardDescription, CardAction, CardContent, CardFooter) are styled <div>s, identical to shadcn/ui.

PropTypeDefaultDescription
interactivebooleanfalseSubtle hover border and background, plus a focus ring, for clickable cards.
asChildbooleanfalseRender the child element instead (Radix Slot), e.g. a Link.
classNamestring—Merged with tailwind-merge, so overrides win.

Accessibility

  • Interactive cards should be a single link or button (asChild) so the whole card is one focus stop with a visible focus ring.
  • Highlight and glare layers are aria-hidden and pointer-events-none; they never intercept clicks or reach screen readers.
  • Loading Card sets aria-busy, hides the skeleton from assistive tech and announces the loading label politely.
  • Tilt Card ignores touch and stays still with prefers-reduced-motion; the skeleton shimmer stops too.