Search combobox
A live demo against a mocked server in your browser — the block is the registry's own source.
Install
Section titled “Install”npx shadcn add @mantle/search-comboboxNeeds a React Aria shadcn project and the @mantle registry in components.json — see
Install. The block lands in components/mantle/search-combobox.tsx, yours to edit.
Point it at a service and the field to match.
import { SearchCombobox } from "@/components/mantle/search-combobox";
<SearchCombobox<Article> service="articles" field="title" label="Search articles" onSelect={(article) => open(article.id)}/>;- Built on shadcn’s aria
Combobox(React AriaComboBox): keyboard navigation and live-region announcements included. operator="auto"(default) tries case-insensitive$ilikeand falls back to$likefor the rest of the session if the adapter rejects it — see the capability matrix.minChars,debounceMs, andlimittune how eagerly it queries.