Skip to content
caliper ui pro docs

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.

Pro

Halden Library entry

Show the front desk your member pass

Halden LibraryMember
Mira Solheim
ID 4821 0092Valid to 09/28

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

terminal
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
PropTypeDefaultDescription
title *string—The issuer, for example "Halden Library".
kindstring"Member"What the holder is, shown top right.
name *string—The holder. A long name wraps on the card.
id *string—
validTo *string—
onChecked((at: Date) => void)—Called once, the first time the card is tilted far enough to see the mark.
statusDepthStatus"ready"
messagesDepthMessages—
onRetry(() => void)—
disabledboolean—
classNamestring—

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

The index of every part is at /llms.txt.

More in Surfaces