Feature flags preview
Edit explicit feature values and rollout percentages across named environments.
pro · Blocks · composite
When to use
- Use it when a page needs edit explicit feature values and rollout percentages across named environments.
- Choose it as the features region when composing a page from independently reusable TidalUI sections.
Alternatives
- Choose empty-state instead when empty collections, search results and errors with a clear next action is the actual interface need, rather than feature flags.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/feature-flag-managerImport components/ui/tidal.css, components/ui/feature-flag-manager.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/feature-flag-manager.css";
import{TidalFeatureFlagManager}from"./components/ui/feature-flag-manager";
export default(p:Parameters<typeof TidalFeatureFlagManager>[0])=><div className="tidal-scope"><TidalFeatureFlagManager {...p}/></div>;API and props
TidalFeatureFlagManager.environmentId (required)stringRequired environment id value accepted by this exported component.
TidalFeatureFlagManager.environments (required)ReadonlyArray<TidalFlagEnvironment>Required environments value accepted by this exported component.
TidalFeatureFlagManager.flags (required)ReadonlyArray<TidalFeatureFlag>Required flags value accepted by this exported component.
TidalFeatureFlagManager.onEnvironmentChange (required)(id: string) => voidCallback invoked when the environment change interaction is proposed.
TidalFeatureFlagManager.onFlagChange (required)(id: string, value: TidalFlagValue, source: "enabled" | "rollout") => voidCallback invoked when the flag change interaction is proposed.
TidalFeatureFlagManager.title (required)ReactNodeRequired title value accepted by this exported component.
TidalFeatureFlagManager.descriptionReactNodeOptional description value accepted by this exported component.
TidalFeatureFlagManager.disabledboolean | undefinedOptional disabled value accepted by this exported component.
TidalFeatureFlagManager.environmentRefRef<HTMLSelectElement> | undefinedOptional environment ref value accepted by this exported component.
TidalFeatureFlagManager.headingLevel"h2" | "h3" | "h4" | "h5" | undefinedOptional heading level value accepted by this exported component.
TidalFeatureFlagManager.labelsPartial<{ environment: string; enabled: string; rollout: string; empty: string; invalid: string; invalidRollout: string; }> | undefinedOptional labels value accepted by this exported component.
TidalFeatureFlagManager.rolloutRef((flag: TidalFeatureFlag) => Ref<HTMLInputElement> | undefined) | undefinedOptional rollout ref value accepted by this exported component.
TidalFeatureFlagManager.switchRef((flag: TidalFeatureFlag) => Ref<HTMLInputElement> | undefined) | undefinedOptional switch ref value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- The host application owns data, validation, persistence, navigation, and service side effects described by this API.