Setting Feature Flags In Storybook

Use when writing a Storybook story for a component gated on a feature flag — boolean flags or multivariate/experiment-arm variants. Covers the `featureFlags` story parameter and why imperatively setting flags renders the flag-off branch in visual-regression snapshots while passing in jest.

gabrielmoreira Updated 17 repo stars

File contents

gabrielmoreira/agent-skills-mirror/tree/main/mirrors/repos/PostHog@posthog/.agents/skills/setting-feature-flags-in-storybook commit 9e541e41ba

Frequently asked questions

npx skillmds@latest add gabrielmoreira/setting-feature-flags-in-storybook