Toggle

Description

A toggle UI component is a user interface element that allows users to switch between two states, typically "on" and "off" or "enabled" and "disabled".

Configuration

Config for Toggle Component (using FormComposerV2)

{
isMandatory: false,
key: "toggle",
type: "toggle",
label: "Default",
disable: false,
populators: {
name: "toggle-Default",
optionsKey: "name",
error: "Error!",
required: false,
options: [
{
code: "1",
name: "Toggle1",
},
{
code: "2",
name: "Toggle2",
},
{
code: "3",
name: "Toggle3",
},
],
},
}

For more information: StoryBook for toggle field

Last updated

All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.