Live pass
A credential card with a foil you check by tilting it. A sheen follows the mouse and a VERIFIED mark only shows once the card is tilted far enough, as security foil does on a banknote. A screenshot cannot show it, and the line beneath keeps a ticking clock, so a still image of the pass is obviously stale.
Halden Library entry
Show the front desk your member pass
Tilt the pass to check the foil · live --:--:--
Front desk has not logged a visit today
When to use
- Member, event and access passes where showing it is live matters.
- Demonstrating tilt-aware materials in product marketing.
When not to use
- Real security. This is a visible cue, not verification; check credentials on the server.
- Anywhere the card text must stay perfectly still.
Installation
pnpm dlx shadcn@latest add @caliper/live-pass
Adds its 7 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
LivePass
11 props
Keyboard
- ←
- Moves to the previous item or value.
- →
- Moves to the next item or value.
- ↑
- Moves to the previous item or value.
- ↓
- Moves to the next item or value.
- Home
- Jumps to the first item or the minimum.
Accessibility
It exposes group semantics, with aria-label, aria-hidden, aria-live and aria-pressed kept in step with state. Changes that matter are announced through a live region.
Motion
- State changes animate with the library's shared durations and curves, so its timing matches every other part.
- Under reduced motion each change lands on its end state without movement; nothing is hidden or skipped.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/live-pass.mdThe index of every part is at /llms.txt.