Select

A select menu. It can be used to show the user a selection of options, or as a toggleable menu of links, or a combination.

Props

options SelectOption[]
variant Variant | ""
optional
text string | null
optional

If specified, the text on the Select will always be this. You usually don't want to use this.

placeholder string
optional

The text to show when no option is specified. This defaults to an empty string, meaning no text will be shown.

value number | null
optional
id UUID
optional
isExpanded boolean
optional

Events

on:change SelectEvent

Example

Selected:

Nothing selected


A Select with overriden text