Slide Toggles
Svelte ComponentA sliding toggle element that can capture input from a user.
Import
Package
Source
Docs
WAI-ARIA
Examples
Usage
let valueChecked: boolean = false;
<SlideToggle bind:checked={valueChecked}>(label)</SlideToggle>
Size
Set size
to sm, md, or lg.
<SlideToggle bind:checked={valueChecked} size="lg" />
Disabled
<SlideToggle bind:checked={valueChecked} disabled />