Switch
A control that allows the user to toggle between checked and not checked.
<div class="switch__container" slot="component">
<Switch.Track class="switch__track" id="airplane-mode-switch">
<Switch.Thumb class="switch__thumb" />
</Switch.Track>
<label for="airplane-mode-switch" class="switch__label">Airplane Mode</label>
</div>
API Reference
Thumb
No propsTrack
Prop | Type | Default |
---|---|---|
checked |
boolean |
false |
disabled |
boolean |
false |