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 acolorproperty with a valid hexadecimal or CSS color name).
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
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 | boolean | false | — |
multiple | boolean | false | — |
clearable | boolean | true | — |
inputId | string | "px-visual-select" | — |
dataTestid | string | "px-visual-select" | — |