IColorPickerPreviewProps

interface
Color

Props for OrigamColorPickerPreview — the hue/alpha slider strip that shows a preview swatch and lets the user adjust transparency.

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Inheritance

Extends

Parent interfaces this one inherits from. Their properties are available on every consumer of this interface.

API

Properties

Every property declared by this interface, with its type, optionality and default.

colorHsv
THSVA | null
Current colour as an HSVA tuple. Drives both the hue gradient and the alpha slider position.
disabled
boolean
Make the hue and alpha sliders non-interactive.
hideAlpha
boolean
Hide the alpha (opacity) slider. Use when the picker should only output fully-opaque colours.
ariaLabel
string

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Standalone preview strip without alpha

vue