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.
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.
- colorrequisTIntent | 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).
- positionrequisnumber
- 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