Feature Flags

A feature flag settings list that pairs each flag key in monospace with a labelled switch. Drop it into admin or developer settings to toggle rollouts.

src/registry/blocks/feature-flags.tsx/r/feature-flags.json

Installation#

bash
npx shadcn@latest add @minidev/feature-flags

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/feature-flags.json

Usage#

tsx
import { FeatureFlags } from "@/components/ui/feature-flags"

export function Example() {
  return <FeatureFlags />
}

API reference#

FeatureFlags takes no props. It ships with realistic sample content: install it, then edit the copy and data in the file directly. The file is yours.

Dependencies#

npm

React only
All settings page components

Learn more