Skip to content
caliper ui pro docs

Environment stack

Development, staging and production as three stacked floors, with the release as a block that travels down them. The list beside it carries the version, the checks and every action. A failed check tints its floor and keeps the block where it is.

Pro
  • Development2.8.1

    Release ready to promote

  • Staging2.8.0

    Healthy

  • Production2.7.4

    Healthy

Release 2.8.1 is on Development.

State

When to use

  • Promotion flows where a release moves through environments in order.
  • Showing where a release is right now, and what stops it moving.

When not to use

  • A single environment; use the deploys screen.
  • A switch between environments; use the environment switcher.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/environment-stack

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

EnvironmentStack

10 props
PropTypeDefaultDescription
labelstring"Environments"
environments *readonly StackEnvironment[]—Top floor first (development), last floor at the bottom (production).
releaseAt *string—The id of the environment the release is on.
releaseVersion *string—
onAction((environmentId: string, actionId: string) => void)—
statusDepthStatus"ready"
messagesDepthMessages—
onRetry(() => void)—
disabledboolean—
classNamestring—

Keyboard

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

Accessibility

It is built on native elements and keeps aria-hidden, aria-label and aria-live 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/environment-stack.md

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

More in Developer tools