π Introduction
Learn about Feature Flags.
What is Feature Flags?
The Feature Flags module allows you to enable or disable functionalities dynamically in your application.
Flags can be static (true/false) or dynamic (functions that decide based on context like user ID, roles, or environment).
Dynamic Feature Flag Demo with User Input
In this demo, users can type any ID or word, and a feature will be enabled or disabled depending on a rule:
- If the input has more than 5 characters, the feature is enabled.
- Otherwise, it is disabled.
Try the following example inputs to see the behavior:
aliceβ disabledcharlieβ enabledbobβ disableddeveloper123β enabled
Dynamic Feature Flag DemoCode Sandbox