PhotoshopPicker

April 10, 2025 · View on GitHub

Props

Besides modelValue and tinyColor (used with v-model and v-model:tinyColor respectively), <PhotoshopPicker /> also supports the following props:

PropTypeDefaultDescription
titlestring"Color picker"The title displayed at the top of the picker dialog.
disableFieldsbooleanfalseIf set to true, the color input fields (HSV, RGB and HEX inputs) are disabled.
hasResetButtonbooleanfalseWhen true, a Reset button is displayed in the picker, allowing users to revert to the original color.
okLabelstring"OK"The label text for the OK button, which confirms the selected color.
cancelLabelstring"Cancel"The label text for the Cancel button, which closes the dialog without applying changes.
resetLabelstring"Reset"The label text for the Reset button.
newLabelstring"new"Text label used to denote the newly selected color preview.
currentLabelstring"current"Text label used to denote the currently active color ( currentColor).
currentColorstring"#fff"The initial current color value used as a reference for the original color (useful for the Reset functionality).

Events

<PhotoshopPicker /> emits update:modelValue and update:tinyColor events, which are used by v-model and v-model:tinyColor respectively.

EventPayloadDescription
okEmitted when the user clicks the OK button to confirm the selected color.
cancelEmitted when the user clicks the Cancel button to close the dialog without applying changes.
resetEmitted when the user clicks the Reset button. Usually it's used to restore the original color (as defined by currentColor).