TOKEN_INTENT_STATES
Color
stable
A frozen Set of intent / state modifier strings recognised by the origam token-name grammar. A path segment matching one of these values is emitted with the "--" modifier separator in the CSS variable name rather than treated as a BEM child ("__") or a property ("---").
API
Signature
Signature TypeScript complète, extraite du fichier util.
TOKEN_INTENT_STATES is a module-level constant, not a function. It is documented here because it lives in a *.util.ts file and is exported from the origam package.
API
Valeur de retour
La valeur retournée par cet util.
- Read-only Set containing: "primary", "secondary", "ghost", "success", "warning", "danger", "info", "error", "selected", "outlined", "elevated", "filter", "hover", "active", "disabled", "focus".
Usage
Exemples
Extraits de code prêts à coller.
Guard a path segment