Live examples
Single selection returning a row
Section titled “Single selection returning a row”Search by part or SKU, select records, then apply. Cancel leaves the previous value unchanged.
null
Initial uncontrolled values
Section titled “Initial uncontrolled values”{
"id": 1,
"text": "Linear bearing"
}[
{
"id": 1,
"text": "Linear bearing"
},
{
"id": 2,
"text": "Drive belt"
}
]Initial values come from domain rows. Changes are committed when Apply is pressed. The second picker also demonstrates localized labels.
Controlled value and pending hydration
Section titled “Controlled value and pending hydration”The form starts with ID 42, outside the current eight-record dataset. Open the picker before and after supplying its row.
{
"ids": [
42
],
"output": null
}See remote selection hydration for the input and output contract.
Custom trigger and interactive cell
Section titled “Custom trigger and interactive cell”The stock cell is an independent button. Clicking it inspects the row without selecting it.
[]
The custom trigger uses a native button with data-lookup-select-trigger. The stock button demonstrates a nested control that does not toggle selection.
Replace the entire presentation
Section titled “Replace the entire presentation”All seven render props are replaced. This example uses a native dialog, accessible buttons and a four-record local page.
[]
The dialog is a native HTML dialog opened with showModal(), so it has browser-managed modality and Escape handling. The cards are native buttons with pressed state; the footer respects confirmation eligibility. Custom renderers do not inherit every behavior of the built-in grid automatically.
Remote records with a slow response
Section titled “Remote records with a slow response”Search by part or SKU, select records, then apply. Cancel leaves the previous value unchanged.
[]
Select records across pages. The response is simulated; no backend is needed. Use the playground to compare latency, failures, sizes, themes and dataset sizes.
The example source is available in website/src/components/demos.