TVariant
type
Shape & Appearance
Visual surface variant for elevation-driven components: text, flat, elevated, tonal, outlined, plain, ghost.
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.
Acceptées
Valeurs
Valeurs littérales de chaîne acceptées pour ce type. Cliquez sur une valeur pour la copier.
- text
- Text-only — no background, no border.
- flat
- Flat filled background, no elevation shadow.
- ghost
- Glassmorphism — translucent tint with backdrop-filter blur.
- elevated
- Filled background with box-shadow elevation.
- tonal
- Subtle tonal fill derived from the current color intent.
- outlined
- Border outline only — no fill.
- plain
- Plain — minimal styling, blends into any surface.
Écosystème
Utilisé par
Composants et props qui acceptent ce type comme valeur.
Usage
Exemples
Extraits de code prêts à coller utilisant ce type.
Btn variant showcase