Select

A styled native select with a bindable value.

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 { Select } from 'fractalsvelte';
</script>

Usage

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

<Select options={options} />

Props

PropTypeDefaultDescription
optionsOption[]-The list of selectable options.
valuestring''The selected value. Supports bind:.
namestring-The form field name submitted with the value.
disabledbooleanfalsePrevents interaction while preserving semantic state.