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 fractalsvelte
Import
<script lang="ts">
	import { Checkbox } from 'fractalsvelte';
</script>

Usage

Usage
<script lang="ts">
	import { Checkbox } from 'fractalsvelte';
</script>

<Checkbox />

Props

PropTypeDefaultDescription
checkedbooleanfalseThe checked state. Supports bind:.
disabledbooleanfalsePrevents interaction while preserving semantic state.
namestring-The form field name submitted with the value.
valuestring-The selected value. Supports bind:.