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| Name | Type | Default | Description |
|---|---|---|---|
options | SeekOption[] | NONE | The choices. |
value | string | string[] | null | None | The chosen value, or the chosen values when `multiple`, when you hold the state. |
defaultValue | string | string[] | null | None | The value chosen at first, when the select holds the state. |
onValueChange | (value: string | string[] | null) => void | None | Called with the new value, or the new values when `multiple`. |
multiple | boolean | false | Lets the user choose several; they show as removable chips. |
maxChips | number | None | Shows at most this many chips and folds the rest into a +N chip. |
searchable | boolean | true | Makes the control a text input that filters the list as you type. |
onSearch | (query: string, signal: AbortSignal) => Promise<SeekOption[]> | None | Fetches the options for what was typed; needs `searchable`. |
debounce | number | 250 | Milliseconds to wait after typing before `onSearch` runs. |
creatable | boolean | false | Adds a Create row when nothing matches what was typed exactly. |
onCreate | (label: string) => void | None | Called with the text of the row the user created. |
clearable | boolean | false | Shows a button that clears the choice. |
label | string | None | The text above the control. |
hint | string | None | A line under the control. |
error | string | None | An error under the control; it also marks the control invalid. |
placeholder | string | "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. |
disabled | boolean | false | |
name | string | None | Sends the choice with a form, as hidden inputs of this name. |
emptyText | string | "No matches" | Text when no option matches. |
portal | boolean | true | Renders the list in a portal on the page body; turn off to keep it inline. |
maxHeight | number | 288 | The tallest the list gets, in px, before it scrolls. |
className | string | None |