COLOR_INTENTS
const
Color
Runtime Set of every semantic intent recognised by useColorEffect and useColor. Keep in sync with TIntent — adding an intent there must also add the literal here so the isIntent type guard works at runtime.
TypeScript
Définition
La définition TypeScript telle qu'elle apparaît dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.
Valeur résolue
Écosystème
Utilisé par
Composables et composants qui consomment cette constante.
useColor
useColorEffect
isIntent
Usage
Exemples
Extraits de code prêts à coller utilisant cette constante.
Checking if a value is a valid intent at runtime