Skip to content
Star

PxVisualSelect

A unified select component that displays visual elements like user icons or color swatches next to options. Useful for assigning teams or color labels.

Visual Variants (Group & Color)
Choose a team

Selected value:

Choose a color

Selected value:

Visual Variants

Use the variant prop to change the visual presentation of the options:

  • group: Displays a "Users" icon. (Default)
  • color: Displays a color swatch (requires each option object to have a color property with a valid hexadecimal or CSS color name).

API Reference

PropTypeDefaultDescription
modelValue
string | number | Record | null | TSParenthesizedType[]null
optionsrequired
VisualOption[]
variant
"color" | "group""group"
label
string"label"
reduce
TSFunctionType(option: any) => option?.id || option?.value || option
placeholder
string""
selectClass
string"vue-select-standard text-gray-400"
disabled
booleanfalse
multiple
booleanfalse
clearable
booleantrue
inputId
string"px-visual-select"
dataTestid
string"px-visual-select"

Built with VitePress