Skip to content
PixiKit

Seek Select

A select and a combobox in one. Pick one or several options, filter by typing, load options as you type or create new ones; chips pop in and out, a highlight slides between rows and the check draws itself.

pixikit.com/docs/app-ui/forms/seek-select

Customize

Multiple
Max chips
Searchable
Debounce250ms
Creatable
Clearable
Size
Check side
Disabled
Portal
Max height288px

Props

24
NameTypeDefaultDescription
optionsSeekOption[]NONEThe choices.
valuestring | string[] | nullNoneThe chosen value, or the chosen values when `multiple`, when you hold the state.
defaultValuestring | string[] | nullNoneThe value chosen at first, when the select holds the state.
onValueChange(value: string | string[] | null) => voidNoneCalled with the new value, or the new values when `multiple`.
multiplebooleanfalseLets the user choose several; they show as removable chips.
maxChipsnumberNoneShows at most this many chips and folds the rest into a +N chip.
searchablebooleantrueMakes the control a text input that filters the list as you type.
onSearch(query: string, signal: AbortSignal) => Promise<SeekOption[]>NoneFetches the options for what was typed; needs `searchable`.
debouncenumber250Milliseconds to wait after typing before `onSearch` runs.
creatablebooleanfalseAdds a Create row when nothing matches what was typed exactly.
onCreate(label: string) => voidNoneCalled with the text of the row the user created.
clearablebooleanfalseShows a button that clears the choice.
labelstringNoneThe text above the control.
hintstringNoneA line under the control.
errorstringNoneAn error under the control; it also marks the control invalid.
placeholderstring"Select"Text shown when nothing is chosen.
size"sm" | "md" | "lg""md"The height and text size of the control.
checkSide"start" | "end""end"Which end of an option the check is on.
disabledbooleanfalse
namestringNoneSends the choice with a form, as hidden inputs of this name.
emptyTextstring"No matches"Text when no option matches.
portalbooleantrueRenders the list in a portal on the page body; turn off to keep it inline.
maxHeightnumber288The tallest the list gets, in px, before it scrolls.
classNamestringNone

Related