Skip to content
caliper ui pro docs

Flip dots

A flip-disc sign: round dots with an ink face and a blank face that flip over, column by column, to spell each message. A message that fits sits centred for a few seconds; a longer one scrolls through one column at a time.

Pro

When to use

  • Departure boards, queue numbers, status signs and launch banners.
  • Short, all-caps messages that should feel physical.

When not to use

  • Long or mixed-case text; the 5 × 7 font is capitals, digits and common punctuation.
  • Information that changes faster than it can be read.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/flip-dots

Adds its 3 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

FlipDots

4 props

Also accepts the native props of its root element and a ref.

PropTypeDefaultDescription
messages *readonly string[]—Shown in turn; anything wider than the board scrolls through. Letters, digits and common punctuation.
labelstring—Read instead of the board; defaults to the messages.
columnsnumber48Board width in dots; the board is 9 dots tall.
holdnumber3.5Seconds a message that fits stays up.

dotColumns

0 props

No props of its own; it accepts the native props of its root element.

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It exposes img semantics, with aria-label kept in step with state.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/flip-dots.md

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

More in Text motion