Autocomplete

Attribute Type Documentation Default Value
id :any

HTML id attribute

class :any

additional CSS classes

name :string

form field name

value :string

selected value (string or JSON array for multiple)

field %FormField{}

a form field struct retrieved from the form

options :list

list of option maps with :value, :label keys

[]
multiple :boolean

enable multi-select mode

false
disabled :boolean

disable the autocomplete

false
clearable :boolean

show clear button

false
placeholder :string

placeholder text

loading :boolean

show loading state

false
no_results_text :string

text shown when no options match

"No results found"
size :string

component size

"md"
error :boolean

show error state

false
errors :list

list of error messages to display

[]
helper :string

helper text displayed below the component

rest :global