ColorPickerRoot
ColorPickerRoot stellt einen Slot für die Schaltfläche mit Farbmuster, eine Standardschaltfläche und einen Inhalts-Slot mit aktuellem Farbwert und update() bereit.
ColorPickerRoot
Generated from packages/vue/src/primitives/ColorPicker/ColorPickerRoot.vue
Props
| Prop | Default | Type |
|---|---|---|
color* | — | Color |
label | "Edit color" | string | undefined |
ui | — | ColorPickerUI | undefined |
Events
| Event | Payload | Description |
|---|---|---|
update | [color: Color] | |
openChange | [open: boolean] | |
cancel | [] |
Slots
| Slot | Props | Description |
|---|---|---|
trigger | { style: { background: string; }; } | |
default | { color: Color; } |