Domain Rating
by Ahrefs
Domain Rating by Ahrefs33
Description
Async Select is a React select component built with shadcn/ui. People type to search a long list, and the component fetches matching options as they type. A debounce delays each search so requests are not sent on every key press. It is composed from the Popover and Command components of shadcn/ui, so it looks and behaves like the rest of a shadcn project. You pass a fetcher function that returns the options, a renderer for each option, and functions that read an option's value and its display label. A preload mode loads all options up front and filters them locally instead. The page includes a live search demo, a preloaded demo, a props table and a TypeScript interface. The required props are the fetcher, the option renderer, the value and display getters, the current value, the change handler and a label. The source is on GitHub.…
Highlights
- Async search with debounce
- Preload mode with local filtering
- Built with shadcn/ui Popover and Command
- Typed props and a TypeScript interface
- Open source code on GitHub
Ratings & Reviews
No ratings yet
Be the first to rate async-select.
People also visit
autocomplete-select-shadcn-ui
Autocomplete component built with shadcn/ui and Fancy Multi Select
async-select FAQ
What is Async Select?
A React select component for shadcn/ui that searches options as you type, loading them from a function you provide.
How do I use it?
Import AsyncSelect and pass a fetcher that returns a promise of items, plus renderOption, getOptionValue, getDisplayValue, value, onChange and label. The page has a basic usage example.
Can it preload options?
Yes. Enable preload to load all options up front, then filter them locally with a filter function.
Where is the code?
The source is on GitHub in the rudrodip/asyncr repository, with the component at src/components/async-select.tsx.
What are the best async-select alternatives?
Popular alternatives to async-select include autocomplete-select-shadcn-ui, shadcn-io and elements. See all async-select alternatives





