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
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Resolved value
Ecosystem
Used by
Composables and components that consume this constant.
useColor
useColorEffect
isIntent
Usage
Examples
Ready-to-paste code snippets using this constant.
Checking if a value is a valid intent at runtime