Basic Usage

Simple dropdown with label and reactive badge.

Selected: No selection

Without Label

Standalone selects that rely on placeholder text.

Size:
Category:

User Roles

Assign permissions with a role dropdown.

Country Selector

Location selection with many options.

In a Form

Select combined with text inputs in a form.

Settings

Multiple selects for application preferences.

Usage

color = ""// With label and placeholder<Select bind={color} label="Favorite Color" placeholder="Choose a color" options="Red,Green,Blue,Yellow,Purple" />// Without label<Select bind={size} placeholder="Pick a size" options="Small,Medium,Large,X-Large" />// Display selected value{if color != ""}<Badge>{color}</Badge>{/if}

Props

PropTypeDefaultDescription
bindbinding-Two-way binding for selected value
labeltext""Label text above select
placeholdertext"Select..."Placeholder option text
optionstext""Comma-separated list of options