Autocomplete can have different radius factors. The default radius is sm
but you can also use md
, lg
or full
.
Show codeHide code
Autocomplete can have different sizes. Use the size
prop to change the size of the autocomplete.
Show codeHide code
Autocomplete can have different contrasts. Use the contrast
prop to change the contrast of the autocomplete.
Show codeHide code
Autocomplete can have different contrasts. Use the contrast
prop to change the contrast of the autocomplete.
Show codeHide code
Autocomplete can have different contrasts. Use the contrast
prop to change the contrast of the autocomplete.
Show codeHide code
Autocomplete can have an error state using the error
prop. Use the error
prop to display an error message.
Show codeHide code
Autocomplete can have a configurable icon on the left side using the icon
prop. Make sure to pick meaningful icons for your use case.
Show codeHide code
Clearable autocomplete have a clear icon that appears on the right side using the clearable
prop. The clear icon is also configurable using the clearIcon
prop.
Show codeHide code
You can allow the user to create new items by setting the allow-create
prop to true
. When the user types a new value and presses Enter
, a new item is created.
Show codeHide code
Autocomplete can be configured to allow multiple values and item selection using the multiple
prop.
Show codeHide code
Autocomplete can be used as a country selector using the items
prop. The items
prop accepts an array of objects with a text
and value
property.
Show codeHide code
Autocomplete can be used as a country selector using the items
prop. The items
prop accepts an array of objects with a text
and value
property.
Show codeHide code
Autocomplete can have a material design style floating label using the labelFloat
prop.
Show codeHide code
Autocomplete can be showed in a loading state using the loading
prop.
Show codeHide code
Autocomplete can be disabled using the disabled
prop.
Show codeHide code
allow-create
Show exampleHide example
chip-clear-icon
Show exampleHide example
classes
Show exampleHide example
clearable
Show exampleHide example
clear-icon
Show exampleHide example
clear-value
Show exampleHide example
color-focus
Show exampleHide example
disabled
Show exampleHide example
display-value
Show exampleHide example
dropdown
Show exampleHide example
dropdown-icon
Show exampleHide example
error
Show exampleHide example
filter-debounce
Show exampleHide example
filter-items
Show exampleHide example
fixed
Show exampleHide example
hide-create-prompt
Show exampleHide example
icon
Show exampleHide example
items
Show exampleHide example
label
Show exampleHide example
label-float
Show exampleHide example
loading
Show exampleHide example
multiple
Show exampleHide example
placeholder
Show exampleHide example
placement
Show exampleHide example
properties
Show exampleHide example
rounded
@since
2.0.0
Show exampleHide example
contrast
Show exampleHide example
i18n
Show exampleHide example
size
Show exampleHide example
#item
Show exampleHide example
#label
Show exampleHide example
#pending
Show exampleHide example
#empty
Show exampleHide example
#start-item
Show exampleHide example
#end-item
Show exampleHide example
#create-item
Show exampleHide example
#autocomplete-multiple-list-item
Show exampleHide example
#icon
Show exampleHide example
#clear-icon
Show exampleHide example
#dropdown-icon
Show exampleHide example
Autocomplete can render results with icons using the <BaseAutocompleteItem> component. The component accepts an icon
prop that is displayed in the results list.
Show codeHide code
Autocomplete can render results with images using the <BaseAutocompleteItem> component. The component accepts a media
prop that is displayed in the results list.
Show codeHide code
active
Show exampleHide example
item
Show exampleHide example
mark
Show exampleHide example
properties
Show exampleHide example
selected
Show exampleHide example
selected-icon
Show exampleHide example
rounded
@since
2.0.0