Feature flagsPro
Flags per environment with switches, percentage rollouts and a change log.
What's inside
- Per-environment state
- Percentage rollout slider
- Search
- Change log
When to use
- Internal tools and developer platforms.
When not to use
- End-user settings: use switches.
Installation
Usage
Import it from @/components/blocks/feature-flags after installing. It ships with sample data, so it renders straight away; swap in your own data when you're ready.
import { FeatureFlags } from "@/components/blocks/feature-flags";
export default function Page() {
return (
<main className="mx-auto max-w-6xl p-6">
<FeatureFlags />
</main>
);
}API reference
FeatureFlags
Feature flags per environment with percentage rollouts, search and a change log. Also the default export. No props: sample data sits at the top of the file, ready to swap for your own.
No props.
Keyboard interactions
| Keys | Action |
|---|---|
| Tab | Move through flags |
| Space | Toggle a flag |
| ←or→ | Adjust rollout or environment |
Accessibility
- Every switch and slider is labelled with the flag key.
Motion
- Change-log entries slide in.
Responsive behavior
- Each flag becomes a card below 768px.
Performance
- Sample data is plain arrays at the top of the file. Replace them with your API data and keep the shapes.
Notes for AI
- Write changes to your flag service in the switch and slider commit handlers.
This page as Markdown, for assistants and coding agents:
/blocks/feature-flags/markdownThe full library index for assistants is at /llms.txt.
Lode222 doc pagesllms.txt