Combobox

Alpha
Beta
No results found
Loading...

Type a query to filter client-side options.

Attribute Type Documentation Default Value
Required id * :string
name :any
value :any
options :list

list of {label, value} tuples or option maps

[]
field %FormField{}
label :string
description :string
prompt :string
trigger :string "button"
filter :string "server"
on_filter :string "combobox-filter"
on_filter_target :any
debounce :integer 300
creatable :boolean false
on_create :string "combobox-create"
clearable :boolean true
loading :boolean false
status :string

custom live-region text for server-filtered results

errors :list []
disabled :boolean false
side :string "bottom"
align :string "start"
size :string

visual density of the field — same scale as input/1 and select/1

"md"
variant :string

border and focus colour of the field, as input/1

appearance :string

ghost: no fill, border or shadow until focused, as input/1

class :any
rest :global
option :slot
Show slot attributes Hide slot attributes
Required value * :any
icon :string
disabled :boolean
group :string
<:option value="a">Alpha</:option>
<:option value="b">Beta</:option>
empty :slot
<:empty>No results found</:empty>