Skip to content
Star

PxSelect

A robust, fully native, and highly customizable select/combobox component. Replaces external libraries while offering features like search, multi-select with chips, dynamic reducers, custom slots, and keyboard navigation.

Basic Usage

Single Select

Single Select
Select a fruit

Selected Value:

Set multiple to true to enable chip-based multi-selection, and searchable to true to enable a search input within the dropdown.

Multi-Select & Search
Select fruits...

Selected Values:

[]

API Reference

PropTypeDefaultDescription
modelValue
anyThe value of the select
optionsrequired
any[]() => []Array of options to select from
label
stringThe label text
error
stringAn error message. Changes select to error state.
hint
stringHint text to display below the select
placeholder
string'Select...'Placeholder text
disabled
booleanfalseNative disabled state
required
booleanfalseMark field as required
optionLabel
string'label'Property to use as the label if options are objects
optionValue
string | TSParenthesizedTypeProperty to use as the value if options are objects. Can be a string key or a reduce function. If not provided, the whole object is returned.
multiple
booleanfalseAllow multiple selections
searchable
booleanfalseEnable search input
clearable
booleanfalseAllow clearing the selection
filterBy
TSFunctionTypeCustom filter function

Built with VitePress