Introduction
react-lookup-select is an MIT-licensed TypeScript library for React 18 and newer that combines a searchable modal table with single or multiple record selection. Its public API supports local arrays, asynchronous server-side pagination, custom renderers and fixed-row virtualization.
A lookup is a selection task where a label alone is not enough. A user choosing a product may need its SKU, price and availability; choosing a customer may require seeing the company and email. LookupSelect combines a trigger with a searchable modal grid and explicit confirmation.
Use it when users select one or more records from structured data. For a short list of simple options, a native select or combobox may be a better fit.
Try it
Section titled “Try it”Search by part or SKU, select records, then apply. Cancel leaves the previous value unchanged.
[]
Where to start
Section titled “Where to start”- Quick start — render your first picker.
- When to use a record picker — compare a modal grid with a dropdown or autocomplete.
- Selection — understand confirm, cancel and controlled state.
- Data sources — connect a remote dataset.
- Remote selection recipe — edit a form with records across pages.
- Changelog — source changes and release notes.
- Playground — explore the public API interactively.
The documentation and live examples follow the repository source. Check the published npm version before relying on a newly documented API.
The npm package ships ESM, CommonJS, TypeScript declarations and an optional stylesheet. React and React DOM 18 or newer are peer dependencies. The library does not require a particular UI framework.