Skip to content
GitHub (opens in a new tab)

TiltCard

A kit Card that tilts a few degrees toward the pointer with a soft highlight, for rare showcase spots (a pricing highlight, a docs gallery). Wraps Card; never the default Card.

stableMoleculecontracts/tiltcard.json

Preview

TiltCard

A kit Card that tilts a few degrees toward the pointer, for rare showcase spots (a pricing highlight, a docs gallery). Never the default Card.

Master

Move the pointer over the left card; the plain Card beside it is the comparison. Tab to Choose Pro for the keyboard state: a static lift, no tilt.

Pro plan

Recommended

$29 / mo

Example data

Pro plan

Recommended

$29 / mo

Example data

Usage

One or two per view, never on tables, forms or agent monitors. Up to 6° toward the pointer with a highlight that follows it; it eases back over motion.duration400 when the pointer leaves. Hover fades in a shadow.md lift. Mouse and pen only. Under reduced motion there is no rotation and no highlight; hover lifts the shadow only.

Do's

  • one highlighted plan or feature in a showcase
  • a docs or marketing gallery tile

Don'ts

  • dense data UI: tables, forms, agent monitors
  • every card in a grid; keep it to one or two
  • a normal content card — Card
<TiltCard title="Pro plan">
  <Badge tone="primary" appearance="soft" size="sm">Recommended</Badge>
  …
</TiltCard>

When to use

  • one highlighted plan or feature in a showcase
  • a docs or marketing gallery tile

When not to use

  • dense data UI: tables, forms, agent monitors
  • every card in a grid; keep it to one or two
  • a normal content card — Card

What an agent reads

import { TiltCard } from "agentic-ds-kit";
must
  • the tilt is pointer-only (mouse, pen); touch does nothing
  • keyboard focus inside shows a focus ring and a static lift, never a tilt
  • the highlight is aria-hidden
  • honours prefers-reduced-motion
defaults
  • tilt true
  • maxTilt 6
  • disabled false
stops if
  • Do not invent a local HoverCard or 3D card
  • Do not tilt more than 6 degrees
  • Do not use raw hex

From contracts/tiltcard.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.

Props

NameTypeRequiredDefaultNotes
tiltbooleanNotruefalse keeps the hover lift only.
maxTiltnumberNo6Degrees at the card's edge, capped at 6.
disabledbooleanNofalseMutes the content, sets aria-disabled, no tilt or lift.
  • Component
    →

    Card

    Framed tile with optional header, body, and footer actions.