The display css prop of input is inline-flex, so do not change it to block or ... for custom styles.
API:
Name
Type
Default
Description
value*
---
---
Value of input
required
Boolean
or
Function
false
Does input required to fill? Also with function type you can pass function with one argument (fn(value){}) and return Boolean value.
disabled
Boolean
false
Does input disabled?
placeholder
String
''
Placeholder text. (when no option selected)
multiple
Boolean
false
Allow user to select multiple options.
options
Array
[]
List of options.
disabledKey
String
'disabled'
disabled key in each option object. only works when options prop is list of objects.
valueKey
String
'value'
value key in each option object. only works when options prop is list of objects.
textKey
String
'text'
text key in each option object. only works when options prop is list of objects.
deleteButton
Boolean
true
Show delete button next to selected values.
loading
Boolean
false
Show loading indicator instead of options.
allowInsert
Boolean
false
Allow user to insert new option.
search
true
or
false
or
null
true
Allow user to search in options. false make it disabled, true handled by internal local search and null just show search input, but not affect to options.
Name
Params
Description
input
newValue
Fired when component request to change value.
insert
text
Fired when user try to insert new value.
search
text
Fired when user typed into search input.
Name
Params
Description
option
option
Template for options inside outer box.
value
value
Template for value inside input.
insert
value
Template for insert new item box inside outer box.