Elements Select
Back to Elements

Select

0 components

UI elements you can copy into your project.

API reference

Generated from each primitive's $props() declaration.

Select.Content

Dropdown selection input.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
sideOffset number 4
portalProps
children Snippet
preventScroll boolean true
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Select.Group

Dropdown selection input.

Prop Type Default Description
ref bind: HTMLElement | null null
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Select.GroupHeading

Dropdown selection input.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Select.Item

Dropdown selection input.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
value
label
children as childrenProp
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Select.Label

Dropdown selection input.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Select.ScrollDownButton

Dropdown selection input.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Select.ScrollUpButton

Dropdown selection input.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Select.Separator

Dropdown selection input.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Select.Trigger

Dropdown selection input with dark mode support.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
children Snippet
size string "default"
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Select.Value

Dropdown selection input.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
placeholder string ""
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.