Skip to content
Preview
PreviewSearch and choose in the page.

EntityPicker

mode
"single" | "multiple"
Default: "single"
valuerequired
readonly EntityOption[]
onChangerequired
(next: EntityOption[]) => void
searchrequired
(query: string, signal: AbortSignal) => Promise<EntityOption[]>
initial
() => Promise<EntityOption[]>
max
number
placeholder
string
Default: "Select"
searchPlaceholder
string
Default: "Search"
emptyText
string
Default: "No matches"
errorText
string
Default: "Could not load results. Try again."
none
string
Single mode: a row before the matches that clears the choice ("Nobody"). Picking it calls onChange([]).
inline
boolean
Default: false
In the page rather than over it: a search field and its listbox rows, with the arrow keys and Enter to pick, and Escape to clear the query. A single pick empties the field and shows the recent list again.
aria-labelrequired
string
rootStyle
RootStyle
A component's typed override prop: Layout and its documented knobs, each the references it takes or another kit knob of its kind; anything else is a type error at the call site (STYLEX.md).

State machine

PreviewChoose a reviewer.