Pro
Environment switcher
Switch between development, preview, staging and production from one control. Production is marked live everywhere it appears, and a notice above risky settings says so in words.
pnpm dlx shadcn@latest add @caliper/environment-switcherWhen to use
Use it for
- Developer platforms and admin consoles with several environments.
- Settings that differ per environment.
Skip it when
- Switching workspaces or accounts; use the workspace switcher.
Installation
pnpm dlx shadcn@latest add @caliper/environment-switcher
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.
Usage
Import it from your copy of the source. The example behind the preview comes with the source. It is built from EnvironmentSwitcher and ProductionNotice.
import { EnvironmentSwitcher, ProductionNotice } from "@/components/ui/environment-switcher"
The worked example comes with Pro
The 36-line example behind the preview opens here, ready to copy.
- 626 Pro parts, blocks and page templates, all with source
- $149 once, with lifetime updates. No renewal
- A full refund within 14 days if it is not for you
API reference
EnvironmentSwitcher
component
ProductionNotice
component
Accessibility
It exposes listbox, option and note semantics, with aria-label, aria-hidden, aria-activedescendant and aria-selected kept in step with state.
Motion
It declares no animation in its component source. Any transition comes from its stylesheet, which uses the duration tokens that collapse to instant under prefers-reduced-motion.
Related
- Deploys screenEvery deployment with production at the top: what it serves and a rollback one step away, build logs that stream, what changed, and promote or roll back with the consequence stated.
- Pipeline runOne pipeline run, stage by stage. Each stage shows what it is doing and how long it has taken, the connectors fill as stages pass, and when one fails the run stops there, opens on the line that failed and offers one button: retry from that stage.
- Edit reviewReview what an agent changed across several files. Files with changes left to decide stay on top and settle to the bottom as you finish them, each file is a sweep-apply review of its own, and Accept all travels through the files one after another, then offers Undo.