Select

One choice from a list that opens from its field.

Example

tsx
<Select placeholder="Pick a region" defaultValue="weur">
  <SelectItem value="weur">Western Europe</SelectItem>
  <SelectItem value="enam">Eastern North America</SelectItem>
  <SelectItem value="apac">Asia Pacific</SelectItem>
</Select>

Usage

Pages are built on the server: import the tags from @dash/server and return the tree. The browser runtime draws it.
tsx
import { Select, SelectItem } from "@dash/server";

Props

SelectProps

Also takes everything AriaAttributes does.
Prop
Type
Description
idstring
namestring
requiredboolean
titlestring
valuestring | null
defaultValuestring | null
placeholderstring
disabledboolean
onValueChange(value: string | null) => void

SelectItemProps

Prop
Type
Description
value (required)string
disabledboolean
PreviousTextarea
On this page