Component libraryFeature flags
Components/Blocks

Feature flags

Pro

Edit explicit feature values and rollout percentages across named environments.

npx shadcn@latest add @tidal-pro/feature-flag-manager
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/feature-flag-manager

Import components/ui/tidal.css, components/ui/feature-flag-manager.css, components/ui/native-select.css, components/ui/toggle-switch.css, components/ui/number-stepper.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

Consumer-owned environments and flags require unique nonblank IDs and labels/keys. Every flag supplies a boolean enabled value and rollout percentage for every environment; null or finite out-of-range rollout remains editable with a visible field error. Nonfinite values or structural inconsistencies produce an explicit configuration error. Up to12 environments and200 flags. Controlled environment and flag callbacks propose local values only. Accepted Native select, Toggle switch and Number stepper compose the controls. Root and control refs, native section attributes, heading levels, disabled state, translated labels, and responsive stacking are supported. No flag evaluation, random assignment, remote change, scheduling or deployment occurs.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.