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
Built from
Related settings components#
Settings PageA React settings page combining a profile form, theme picker, notification preferences and a danger zone for destructive actions under one header.Admin User RowUser management row with avatar, online status dot, name, email, a role chip for admin, write or read access, and an accessible actions menu button.Avatar UploadReact profile photo uploader with an avatar preview and an Upload button that opens a hidden image file input. Shows initials until a picture is chosen.Bulk User ImportCSV user import panel with a format hint for email, name and role, a CSV-only dropzone and an Import users button that enables once a file is added.Connected AccountTailwind settings row for a linked third party account showing the provider and account name, with a Disconnect button. For OAuth and integrations.Danger ZoneDanger zone settings card with a red outline, a warning that the action cannot be undone and a destructive delete button. Put it last on settings pages.
All settings page components