IGradientStop

interface
Color & Intent

Single stop in a multi-stop gradient — pairs a color (TIntent alias or raw CSS color) with a percentage position in the [0..100] range.

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

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.

color
requis
TIntent | string
Stop color — a TIntent name (resolved to its --origam-color__action--{intent}---bg token) or a raw CSS color string (hex, rgb, hsl, named).
position
requis
number
Position of the stop as a percentage in the [0..100] range.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

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

Building a 3-stop gradient with IGradientStop

typescript