Checkbox
InputsA checkbox for boolean values.
Preview
Usage
<Checkbox label="I agree" bind:checked={agreed} />Props
| Name | Type | Default | Description |
|---|---|---|---|
| checked | boolean | false | Whether the checkbox is checked. |
| label | string | '' | Label text. |
A checkbox for boolean values.
<Checkbox label="I agree" bind:checked={agreed} />| Name | Type | Default | Description |
|---|---|---|---|
| checked | boolean | false | Whether the checkbox is checked. |
| label | string | '' | Label text. |