@centrodphlibs/autocomplete
v0.0.11
Published
React autocomplete component library
Maintainers
Readme
@centrodphlibs/autocomplete
React autocomplete component library.
Installation
npm install @centrodphlibs/autocompleteUsage
Simply import the component - CSS styles are automatically injected! No need to import CSS separately.
import { Autocomplete } from '@centrodphlibs/autocomplete';
function App() {
return (
<Autocomplete
options={options}
search={search}
onChange={handleChange}
onSelection={handleSelection}
isLoading={isLoading}
/>
);
}That's it! The styles are automatically injected when you import the component. Works in all modern environments including Vite, Webpack, Parcel, and even in browser environments without a bundler.
Running unit tests
Run nx test autocomplete to execute the unit tests via Vitest.
