IColorPickerSwatchesProps

interface
Color

Props for OrigamColorPickerSwatches — the grid of colour swatch tiles displayed below the picker controls.

TypeScript

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

Héritage

Hérite de

Interfaces parentes dont celle-ci hérite. Leurs propriétés sont disponibles pour tout consommateur de cette interface.

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

colorHsv
THSVA | null
Current colour as an HSVA tuple. Used to highlight the matching swatch tile.
disabled
boolean
Prevent swatch tile selection.
swatches
Array<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.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Custom brand swatches in two rows

vue