United States
Canada
United Kingdom
Germany
Australia
Japan
San Francisco (sfo1)
Washington, DC (iad1)
London (lhr1)
Frankfurt (fra1)
Sydney (syd1)
Tokyo (nrt1, waitlist)

Styled quick start

Copy this entrypoint first. It includes the imports required to get the component on screen.

svelte
<script lang="ts">
  import '@dryui/ui/themes/default.css';
  import '@dryui/ui/themes/dark.css';
  import { Select } from '@dryui/ui';
</script>

<Select.Root bind:value={selected} bind:open={selectOpen} name="selection">
  <Select.Trigger>
    <Select.Value placeholder="Choose…" />
  </Select.Trigger>
  <Select.Content>
    <Select.Item value="a">Alpha</Select.Item>
    <Select.Item value="b">Beta</Select.Item>
  </Select.Content>
</Select.Root>

Import options

Root package

ts
import { Select } from '@dryui/ui'

Per-component subpath

ts
import { Select } from '@dryui/ui/select'

API

Props, CSS variables, and the public data attributes you can target when styling.

Prop Type Description Default Required Bindable

Select.Root

open
boolean
Controls whether the select menu is currently expanded.
value
string
Bindable selected value for the current option set.
disabled
boolean
Prevents interaction and applies disabled styling.
name
string Adds a hidden input so the selected value participates in native form submission.
Field name used during native form submission.
options
Array<string | { value: string; label: string }>
placeholder
string
Hint text shown when no value is selected or entered.
children
Snippet
Content rendered inside the component.

Select.Trigger

children
Snippet
Content rendered inside the component.

Select.Content

placement
toptop-starttop-endbottombottom-startbottom-endleftleft-startleft-endrightright-startright-end
'bottom-start'
offset
number
8
children
Snippet
Content rendered inside the component.

Select.Item

value
string
Current controlled or bindable value.
disabled
boolean
Prevents interaction and applies disabled styling. false
children
Snippet
Content rendered inside the component.

Select.Value

placeholder
string
Hint text shown when no value is selected or entered. ''