Overview
Feature flags enable new behaviors and styling, allowing users to opt-in to new breaking changes while staying on the current major version.
Overview
When a new feature flag is introduced, it is set to false or “off” by default to ensure backward compatibility. We are not deprecating the current components but encourage all teams to use the new feature flag-enabled components in their products moving forward.
Components with feature flags
The following components have feature flags, with changes related to either design or development:
How to implement
Code
In React, for more feature flag information specific to developers, refer to the @carbon/react framework.
Design
Inside a design file, click on the component with a feature flag (A). In the properties panel, locate the ”Feature flag” boolean property (B). By default, this feature is turned off, but you can toggle it on to enable the feature flag.
Additionally, when viewing more details in the ”Component documentation” (C) section of the properties panel, a description of a feature flag and a link to the components usage guidance is provided for more information (D).