Value types
FeatureManagement.UI
works with the following types of value:
boolean
integer
decimal
string
configuration.ServerFeature("Beta", true);
By default, it provides a feature without strict limitation. You can however specify a list of choices to limit the number of options available.
var themes = new List<string>{ "light", "dark"};
configuration.ClientFeature("Theme", themes[0], "Choose a theme for the frontend", themes);