Browse components

AutoComplete

import AutoComplete from "@shpaw415/mui-lite/AutoComplete";

Why use it

AutoComplete filters a list of options as the user types. Use for searchable selects (countries, users, tags) with optional custom rendering and filter logic.

Demo

Example

import AutoComplete from "@shpaw415/mui-lite/AutoComplete";
 
<AutoComplete
  options={["Apple", "Banana", "Cherry"]}
  onSelect={(v) => console.log(v)}
/>

Props

PropTypeDefault
optionsstring array or objects with labelrequired
onSelectcallback with selected value
onFiltercustom filter
listItemRendercustom row
valuestring