VARIANT
enum
Shape & Appearance
TypeScript enum for component visual variants (text, flat, elevated, tonal, outlined, plain, ghost).
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Members
Members
All members of this enum. Click a value to copy it to clipboard.
- VARIANT.TEXT
- Text-only surface — no background fill.
- VARIANT.FLAT
- Filled background with no elevation shadow.
- VARIANT.ELEVATED
- Filled background with box-shadow elevation.
- VARIANT.TONAL
- Subtle tonal fill derived from the intent color.
- VARIANT.OUTLINED
- Border only — no background fill.
- VARIANT.PLAIN
- Minimal chrome — blends into any surface.
- VARIANT.GHOST
- Glassmorphism — translucent with backdrop-filter blur.
Ecosystem
Used by
Components and props that accept this enum as a value.
Usage
Examples
Ready-to-paste code snippets using this enum.
Using the enum in script setup