Radio Group
Choose exactly one option from a related set.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 { RadioGroup } from 'fractalsvelte';
</script>Usage
Usage
<script lang="ts">
import { RadioGroup } from 'fractalsvelte';
</script>
<RadioGroup name="plan" options={options} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
options | Option[] | - | The list of selectable options. |
value | string | '' | The selected value. Supports bind:. |
name | string | - | The form field name submitted with the value. |
disabled | boolean | false | Prevents interaction while preserving semantic state. |
