React component / MIT license

Select records,
not just labels.

react-lookup-select is an open-source React record picker with a searchable modal data grid. Pick one record or many, inspect the details, and commit the selection when ready.

npm i react-lookup-select
Purchase order / InventoryLive component
SKUPartStock
P-0001Linear bearing7
P-0002Drive belt24
P-0003Pressure sensor0
P-0004Guide rail58

4 of 8 sample records

Parts to add to order
Choose parts…

Search by part or SKU, select records, then apply. Cancel leaves the previous value unchanged.

Committed value
[]
8 parts · multiple selectionSee selection guide →
Designed for real application data

Keep the context in the selection.

Customers with identical names. Parts with similar SKUs. Employees across departments. Let users see the information they need before they pick.

01 / Data

Local or remote

Start with an array. Switch to a data source for server-side search, sorting and pagination without changing the selection flow.

Data sources →
02 / State

Explicit selection

Draft selections stay separate from committed values. Choose typed ID/text pairs, full rows or your own projection.

Value formats →
03 / UI

Make it yours

Use built-in styles or replace the trigger, dialog, grid and other parts. Keep your existing React UI stack.

Render props →
The public API

Data in. Selection out.

Define the columns, map record identity and display text, and receive a typed value. The library handles the selection session.

Explore API reference →
import { LookupSelect } from 'react-lookup-select';
import 'react-lookup-select/styles.css';

<LookupSelect
  data={parts}
  columns={[
    { key: 'code', title: 'SKU' },
    { key: 'name', title: 'Part' },
    { key: 'stock', title: 'Stock' },
  ]}
  mapper={{
    getId: part => part.id,
    getText: part => part.name,
  }}
  mode="multiple"
  onChange={setSelection}
/>

Try the boundaries.

Switch to remote data, test a failed request or scroll through 25,000 records in the playground. Inspect the actual callback payloads.

Open playground →
Choosing the right component

When a React dropdown is not enough

A combobox is useful for short lists and quick autocomplete. A lookup select is useful when the choice depends on several columns, a remote dataset, or a selection that must be reviewed before applying.

Large data selection

Use a fixed-height virtual grid to limit mounted rows, or request pages from your API.

Virtualization guide →