Checkbox
A native checkbox with bindable checked state.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 { Checkbox } from 'fractalsvelte';
</script>Usage
Usage
<script lang="ts">
import { Checkbox } from 'fractalsvelte';
</script>
<Checkbox />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. |
value | string | - | The selected value. Supports bind:. |
