About
An environment-aware feature flag console with search, status filters, per-flag switches and inline rollout sliders.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Feature Flag Console to your project and fits it to your theme.
Code
How Feature Flag Console is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
/**
* PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
*/
import { FeatureFlagConsole, type FeatureFlag } from "@/components/ui/feature-flag-console";
const FLAGS: FeatureFlag[] = [
{
id: "checkout-recommendations",
name: "Checkout recommendations",
key: "checkout-recommendations",
description: "Suggest complementary items beside the order summary on the checkout page.",
owner: "Mara Ellison",
updatedAt: "2h ago",
tags: ["checkout", "growth"],
enabled: { development: true, staging: true, production: false },
rollout: { development: 100, staging: 50, production: 0 },
},
{
id: "unified-navigation",
name: "Unified navigation",
key: "unified-navigation",
description: "One navigation shell for the dashboard, billing and settings areas.",
owner: "Theo Nakamura",
updatedAt: "5h ago",
tags: ["navigation", "ui"],
enabled: { development: true, staging: true, production: true },
rollout: { development: 100, staging: 100, production: 25 },
},
{
id: "async-invoice-export",
name: "Async invoice export",
key: "async-invoice-export",
description: "Move large invoice exports to a background job with an email download link.",
owner: "Priya Raman",
updatedAt: "Yesterday",
tags: ["billing", "performance"],
enabled: { development: true, staging: false, production: false },
rollout: { development: 100, staging: 0, production: 0 },
},
{
id: "conversation-summaries",
name: "Conversation summaries",
key: "conversation-summaries",
description: "Show a short summary above long support threads to speed up handoffs.",
owner: "Jonas Weber",
updatedAt: "2d ago",
tags: ["support", "ai"],
enabled: { development: false, staging: false, production: false },
rollout: { development: 0, staging: 0, production: 0 },
},
{
id: "bulk-csv-import",
name: "Bulk CSV import",
key: "bulk-csv-import",
description: "Import several CSV files at once with a shared column mapping.",
owner: "Elena Fischer",
updatedAt: "3d ago",
tags: ["data", "import"],
enabled: { development: true, staging: true, production: true },
rollout: { development: 100, staging: 100, production: 50 },
},
];
export default function FeatureFlagConsoleDemo() {
return (
<main className="flex min-h-screen w-full items-center justify-center bg-background px-4 py-10 sm:px-6">
<FeatureFlagConsole
flags={FLAGS}
title="Release controls"
description="Toggle features per environment and adjust rollout gradually."
defaultEnvironment="staging"
/>
</main>
);
}








