Feature flags
Feature flags across environments: switch each on or off, roll out to a percentage, target with rules, see stale flags, and confirm every production change with how many people it reaches.
When to use
- Release management and experimentation tools.
- Internal admin for teams that ship behind flags.
When not to use
- A user preference; use a switch in settings.
Installation
pnpm dlx shadcn@latest add @caliper/feature-flags
Adds its 12 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
FeatureFlags
6 props
Keyboard
- Keyboard and focus come from Radix dialog, popover: arrow keys move through items, Enter and Space select, and Escape closes and returns focus.
Accessibility
It exposes region and status semantics, with aria-labelledby, aria-label, aria-expanded, aria-controls 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/feature-flags.mdThe index of every part is at /llms.txt.