Switch
A bindable binary control.Examples
Installation
Install the package, then import only the components a route uses. Exports are tree-shakable.
Install
pnpm add fractalsvelteImport
<script lang="ts">
import { Switch } from 'fractalsvelte';
</script>Usage
Usage
<script lang="ts">
import { Switch } from 'fractalsvelte';
</script>
<Switch />Props
| Prop | Type | Default | Description |
|---|---|---|---|
checked | boolean | false | The checked state. Supports bind:. |
disabled | boolean | false | Prevents interaction while preserving semantic state. |
name | string | - | The form field name submitted with the value. |
