TIntent

type
Color & Intent

Semantic intent values: neutral, primary, secondary, ghost, success, warning, danger, info.

TypeScript

Définition

La définition TypeScript telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

Acceptées

Valeurs

Valeurs littérales de chaîne acceptées pour ce type. Cliquez sur une valeur pour la copier.

neutral
Neutral / no semantic color — inherits from surface tokens.
primary
Primary brand color — maps to --origam-color__action--primary---* tokens.
secondary
Secondary accent color — a complementary brand rung.
ghost
Transparent / ghost surface — used for low-emphasis actions.
success
Positive confirmation intent (green ramp).
warning
Caution / attention intent (amber ramp).
danger
Destructive / error intent (red ramp).
info
Informational intent (blue ramp).

Écosystème

Utilisé par

Composants et props qui acceptent ce type comme valeur.

Usage

Exemples

Extraits de code prêts à coller utilisant ce type.

Buttons with each intent

html