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.
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.
- colorHsvTHSVA | null
- Current colour as an HSVA tuple. Drives both the hue gradient and the alpha slider position.
- disabledboolean
- Make the hue and alpha sliders non-interactive.
- hideAlphaboolean
- Hide the alpha (opacity) slider. Use when the picker should only output fully-opaque colours.
- ariaLabelstring
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