Expanding search
CoreAn icon that morphs into a search field with results beneath it.
pnpm dlx shadcn@latest add https://wui.alann.works/r/expanding-search.jsonAPI Reference
| Prop | Type | Default |
|---|---|---|
label* | string | required |
items* | ExpandingSearchItem[] | required |
suggestions | ExpandingSearchItem[] | — |
suggestionsLabel | string | — |
placeholder | string | — |
onSelect | (item: ExpandingSearchItem) => void | — |
onExpandedChange | (expanded: boolean) => void | — |
expandedWidth | number | — |
maxResults | number | — |
anchor | "start" | "end" | — |
emptyHint | string | — |
className | string | — |