Feature Flags Manager
An interactive feature-flag management panel. Each row shows the flag's key, a real on/off toggle, a rollout-percentage progress bar, and badges for which environments it's live in. Built for internal admin tools and platform dashboards.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its badge dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/feature-flags-manager.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/devtools/devtools16.tsx instead.
Usage
The file also exports devtools16Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Devtools16, devtools16Demo } from "@/components/blocks/devtools/devtools16"; export default function Page() { return <Devtools16 {...devtools16Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | "Feature Flags" | Section heading. |
| description | string | undefined | Section intro text below the heading. |
| flags | FeatureFlag[] | none | Flag rows, rendered in the order given. |
| className | string | none | Extra classes for the outer section element. |
Types
type FlagEnvironment = "production" | "staging" | "development"; type FeatureFlag = { key: string; name: string; description: string; enabled: boolean; rolloutPercent: number; environments: FlagEnvironment[]; };
Behavior notes
- Toggle switches are real local state (a role="switch" button per flag) seeded from each flag's enabled value; there is no backend, so refreshing the page resets every flag to its original state.
- The rollout bar reflects the static rolloutPercent value passed in; dragging or clicking the bar does not change the percentage, only the toggle switch is interactive.
- Environment badges (prod/staging/dev) are read-only labels; there is no per-environment override of the toggle.
- Flags are rendered in a single fixed-order list; there is no search, filtering, or grouping by environment.
More DevTools Blocks
View all →api-endpoints-sample-call
API Endpoints With Sample Call
Reference list of API endpoints paired with a live sample request and response panel.
cicd-pipeline-status
CI/CD Pipeline Status
Recent CI/CD pipeline runs with per-stage status chips and overall run badges.
code-diff-viewer
Code Diff Viewer
Unified code diff panel with a file header change summary and colored addition/deletion lines.
keyboard-shortcuts-reference
Keyboard Shortcuts Reference
Grouped keyboard shortcut reference with keycap-styled key combos.
performance-waterfall
Performance Waterfall
Network request waterfall chart with cascading timing bars colored by duration.
service-health-board
Service Health Board
Infrastructure status board with a live summary strip and per-service uptime, latency, and health.