Virtualized Listbox
Live example
Virtualized Listbox
Installation
npx shadcn@latest add https://hextech-ui.vercel.app/r/virtual-listbox.jsonAPI reference
These are the main Virtualized Listbox options. See the exported TypeScript types for inherited native or primitive props.
| Prop | Type | Default |
|---|---|---|
label / items | string / readonly VirtualOption[] (required) | — |
value / defaultValue | readonly string[] | [] |
multiple | boolean | false |
height / rowHeight | number | 240 / 44 |
Usage notes
Provide stable keys and a visible label. Match rowHeight to the actual option geometry. Controlled selections pair value with onValueChange; the active option stays mounted for keyboard and assistive-technology navigation.