Color Picker
November 2, 2026About 1 min
Color Picker
Start with the basic example, then compare related settings before moving to controlled, asynchronous or combined use cases.
Basic examples
Basic usage
default-value: Default value (uncontrolled state)
Appearance and states
Disabled
Configuration reference for this comparison
| Configuration | Purpose | Related examples |
|---|---|---|
default-value | Default | Disabled |
disabled | Disabled | Disabled |
hide-trigger | Panel only, without a trigger | Disabled |
show-text | Show color value | Disabled |
default-value: Default value (uncontrolled state)disabled: disabledhide-trigger: There is no trigger element, only the color panel is displayedshow-text: Show color value
Content and presentation
Colors
Configuration reference for this comparison
| Configuration | Purpose | Related examples |
|---|---|---|
default-value | Default | Colors |
history-colors | History colors | Colors |
show-history | Show history colors | Colors |
show-preset | Show preset colors | Colors |
default-value: Default value (uncontrolled state)history-colors: Color array of historical colorsshow-history: Show history colorsshow-preset: Show preset colors
Data and options
Format
Configuration reference for this comparison
| Configuration | Purpose | Related examples |
|---|---|---|
default-value | Default | Format |
format | Color value format | Format |
show-text | Show color value | Format |
hide-trigger | Panel only, without a trigger | Format |
default-value: Default value (uncontrolled state)format: Color value formatshow-text: Show color valuehide-trigger: There is no trigger element, only the color panel is displayed
API
<ColorPicker> Props
| Parameter | Description | Type | Default |
|---|---|---|---|
| model-value (v-model) | Bound value | string | - |
| default-value | Default | string | - |
| format | Color value format | 'hex' | 'rgb' | - |
| size | Size | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'md' |
| show-text | Show color value | boolean | false |
| show-history | Show history colors | boolean | false |
| show-preset | Show preset colors | boolean | false |
| disabled | Disable interaction | boolean | false |
| disabled-alpha | Disable alpha | boolean | false |
| hide-trigger | Panel only, without a trigger | boolean | true |
| history-colors | History colors | string[] | - |
| preset-colors | Preset colors | string[] | - |
Existing precedence of forwarded configuration (F07)
Existing triggerProps are spread after some internal Trigger settings, so nested fields such as disabled can currently override internal values. F07 preserves this order and type for compatibility; it does not apply AutoComplete managed-field rules, promise a new safe subset or automatically prohibit these existing capabilities.
Dragging uses the control owner view. KeepAlive deactivation or unmount ends the gesture and releases its listeners; a new activation requires a new gesture, and callbacks from old gestures cannot change its value.