Skip to content
caliper ui pro docs

Status morph

A status that changes in place: the pill eases to its new width while icon and colour cross over, and the change is announced.

Pro
  • #418 · a3f9c1eRavi Patel · Add usage-based billingQueued
  • #417 · 9b20d4fLena Fischer · Retry webhooksFailed: tests

When to use

  • Deploys, jobs, payments and anything that moves through states.
  • Rows that update while people watch.

When not to use

  • Static labels; use a badge.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/status-morph

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

StatusMorph

2 props

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

PropTypeDefaultDescription
status *T—
states *Readonly<Record<T, StatusMorphState>>—Every status it can show, with its label and tone.

Keyboard

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

Accessibility

It exposes status semantics, with aria-live and aria-hidden kept in step with state. Changes that matter are announced through a live region.

Notes for AI

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

/docs/components/status-morph.md

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

More in Changing values