Select

Select

select.tsx

Install

$ bunx --bun shadcn add @beui/select

API Reference

Select

value?
string
Default—
defaultValue?
string
Default—
onValueChange?
((value: string) => void)
Default—
open?
boolean

Controlled open state of the panel. A layout that stacks selects can hold this to keep exactly one panel open — the panel is absolutely positioned inside its field, so two open at once paint over each other's options.

Default—
defaultOpen?
boolean

Uncontrolled initial open state. Default false.

Defaultfalse
onOpenChange?
((open: boolean) => void)

Fires whenever the panel opens or closes. The panel is absolutely positioned inside the field, so a layout that stacks selects has to know which one is open to paint it above its neighbours.

Default—
disabled?
boolean
Defaultfalse
className?
string
Default—

SelectTrigger

className?
string
Default—

SelectValue

placeholder?
string
Default—
className?
string
Default—

SelectContent

className?
string
Default—

SelectItem

value
string
Default—
disabled?
boolean
Defaultfalse
className?
string
Default—

Morph Select

select-morph.tsx

Install

$ bunx --bun shadcn add @beui/select-morph

API Reference

MorphSelect

value?
string
Default—
defaultValue?
string
Default—
onValueChange?
((value: string) => void)
Default—
disabled?
boolean
Defaultfalse
className?
string
Default—

MorphSelectValue

placeholder?
string
Default—
className?
string
Default—

MorphSelectTrigger

className?
string
Default—

MorphSelectContent

className?
string
Default—

MorphSelectItem

value
string
Default—
disabled?
boolean
Defaultfalse
className?
string
Default—
Also on React Native. A panel that unfolds out of its trigger.

Updated