Color Picker

Color picker.

Color Picker

Clicking the trigger opens the complete picker directly. Adjust saturation, brightness, hue and opacity, use the screen eyedropper, or switch between HEX, RGB(A) and HSL(A) channel editing. The main panel no longer depends on a second native picker. The eyedropper uses the EyeDropper API first and automatically falls back to the native color selector when that API is unavailable or fails.

Shape

Use shape="square" to apply square geometry to the color trigger and the complete editor panel.

API

PROPS

Property
Type
Values
Description
default
Example
More
shape
String
rounded | square
Apply rounded or square geometry to the trigger and editor panel.
rounded
v-model
String
hex / rgb / rgba / hsl / hsla
Selected color value.
#5667f4
—
show-alpha
Boolean
true / false
Enable opacity adjustment.
false
—
predefine
Array
Array<{ namevalue }> / string[]
Named preset colors. Values support HEX, RGB(A), and HSL(A); string arrays remain compatible.
[]
—
format
String
hex / rgb / hsl
Initial editing and output format. It can also be switched in the panel.
hex
—

EVENTS

Event
Type
Description
default
Example
More
change
—
Fired when a color is selected or changed.
—
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied