ColorPicker
Click the trigger swatch to open a color panel, supporting preset colors, HSV, and RGB input.
Basic Usage
Basic
Custom Preset Colors
Custom preset
Disabled
Disabled
Events
Change events
API
Attributes
| Attribute | Description | Type | Default |
|---|---|---|---|
disabled | Disabled | boolean | — |
preset | Preset color array (JSON) | string | — |
value | Current color (hex) | string | — |
Events
| Event | Description |
|---|---|
oas-change | Color change, detail: { value } |
Keyboard: with the trigger button focused, ↑/↓ adjusts brightness; inside the panel, Esc closes, clicking outside closes.