Toggle

Toggles are boolean form components used for easily enabling or disabling features.

Readonly State

You can set the toggle input to be readonly by using the readonly property.

Disabled State

You can set the toggle input to be disabled by using the disabled property.

Color Variants

You can use the color property to set a light or dark color for your toggle components.

Size Variants

You're able to use the size property to control the size of your inputs, using one of the available sizes: sm, md, and lg. The default size is set to md.

Applying the size size property to an IFormGroup will also set the chosen size to all of its IToggle inputs.

Props

Slots

Events

Design Tokens