Tailwind CSS ComboBox (Autocomplete)
Build autocomplete inputs that suggest matching options as users type, using HTML or remote JSON data sources with API paths, query parameters, minimum search length, clear buttons, and JavaScript methods.
Requires JS
Note that this component requires the use of our ComboBox plugin, else you can skip this message if you are already using Preline UI as a package.
Custom API paths
Map separate API paths for search and default results when the endpoint structure differs.
Remote JSON with query parameters
Append query parameters like per_page=10 when requesting remote results.
Minimum search length
Require a minimum number of typed characters before the combobox starts requesting remote results.
Destroy and reinitialize
Use the destroy method before reinitializing the combobox when the component needs to be rebuilt.