SELECTION / SEARCH AND RECOVERY

Keep the right people in view.

Search remote options, load another page and keep the choices you have already made.

A person, not just a value.

Search a sample directory over HTTP. Selected IDs and labels stay available across result pages.

Starts from the ID maya; its label is resolved from the service.

Try another search or load more; your reviewers remain selected.

Selections are submitted as IDs.

Connect your directory.

React / TypeScript
const loadPeople = useCallback(request => directory.search(request), [directory]);
const resolvePeople = useCallback(request => directory.resolve(request), [directory]);

<AsyncMultiSelect
  label="Reviewers" value={reviewers} onValueChange={setReviewers}
  loadOptions={loadPeople} resolveOptions={resolvePeople}
/>

Use stable callbacks and change sourceKey when the data scope changes. The sample endpoint contains illustrative records and does not authenticate accounts.

Read the loading and selection contract