Skip to content

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

PropDefaultType
color*—Color
label"Edit color"string | undefined
ui—ColorPickerUI | undefined
keepOpen
Whether a press outside the picker should leave it open, such as one that samples the canvas.
—PickerKeepOpen | undefined

Events

EventPayloadDescription
update[color: Color]
cancel[]
openChange[open: boolean]

Slots

SlotPropsDescription
trigger{ style: { background: string; }; }
default{ color: Color; }

Siehe auch ​