IColorPickerSwatchesProps
interface
Color
Props for OrigamColorPickerSwatches — the grid of colour swatch tiles displayed below the picker controls.
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. Used to highlight the matching swatch tile.
- disabledboolean
- Prevent swatch tile selection.
- swatchesArray<Array<TColorType>>
- Custom 2-D array of colour values (rows × swatches-per-row). Each inner array forms one row in the grid. Defaults to the built-in Material colour ramps.
Ecosystem
Used by
Components and composables that extend or consume this interface.
Usage
Examples
Ready-to-paste code snippets using this interface.
Custom brand swatches in two rows