Toggle

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

Basic Usage

Basic Toggle

Sizes

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.

Toggle Sizes

Applying the size size property to an i-form-group will also set the chosen size to all of its i-toggle inputs.

Readonly State

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

Readonly Toggle

Disabled State

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

Disabled Toggle

Component API

Here you can find a list of the various customization options you can use for the toggle component as props, as well as available slots and events.

Toggle API

Sass Variables

Here you can find a list of the Sass variables you can use for the toggle component. If you're looking to find common variables that these rely on, you should take a look at the Sass Variables page.

Radio