Updated
Flag Rollout
ProCustomize
Breaks at 50%
Guardrail2.0%
Hold2.4s
Color
Width480px
Installation
ProFlag Rollout is a Pro component
Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.
Install with a key
- Add the Pro registry to
components.json:components.json { "registries": { "@uibrik-pro": { "url": "https://uibrik.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" } } } } - Put your key in
.env.localand add that file to.gitignore:.env.local UIBRIK_LICENSE=your-license-key - Install it:
Terminal npx shadcn@latest add @uibrik-pro/flag-rollout
Loading your installation…
Usage
import { FlagRollout } from "@/components/uibrik/flag-rollout/flag-rollout";<FlagRollout flag="new-checkout" scenario="rollback" guardrail={2} hold={2.4} autoplay color="#3e63dd" width={480} stages={[0, 5, 25, 50, 100]} users={12480} environment="Production" onRollback={(errorRate) => {}} // value={0} // defaultValue={0} // onValueChange={(pct) => {}}/>Where to use Flag Rollout
Feature flag and experimentation tools
Exposure, health and history sit in one card, so a release reads as a story instead of a settings page.
Pairs with Deploy Pipeline
Release and incident dashboards
The guardrail line and the automatic rollback show why a release stopped without opening logs.
Pairs with Incident Postmortem and Status Dashboard
DevOps product landing pages
A rollout that breaks and heals itself shows progressive delivery in a few seconds of motion.
Props
FlagRollout- flag
- Type string
- "new-checkout"
- Flag key in the header.
- scenario
- Type "rollback" | "healthy"
- "rollback"
- How the simulated release behaves.
- guardrail
- Type number
- 2
- Error rate that triggers an automatic rollback.
- hold
- Type number
- 2.4
- Seconds the flag holds at each stage before the next step.
- autoplay
- Type boolean
- true
- Start stepping through the stages on mount.
- color
- Type string
- "#3e63dd"
- Colour of exposed users and the rollout.
- width
- Type number
- 480
- Width of the card; never wider than its container.
- stages
- Type number[]
- [0, 5, 25, 50, 100]
- Percentages the rollout steps through.
- users
- Type number
- 12480
- Users the flag can reach; the exposed count is a share of this.
- environment
- Type string
- "Production"
- Shown in the header.
- value / defaultValue / onValueChange
- Type number / number / (pct) => void
- –
- Rollout percentage, controlled or uncontrolled.
- onRollback
- Type (errorRate: number) => void
- –
- Called when the guardrail rolls the flag back.
- className
- Type string
- –
- Classes for the wrapper.