Skip to main content

Module variant

Module variant 

Source
Expand description

Variant phantom types for type-safe styling.

These zero-sized types encode component variants at compile time, enabling monomorphization for optimal performance.

Structs§

DefaultInput
Default input variant.
Destructive
Destructive variant - dangerous/irreversible actions.
FilledInput
Filled input variant.
Ghost
Ghost variant - subtle, minimal styling.
Outline
Outline variant - bordered with transparent background.
Primary
Primary variant - main call-to-action.
Secondary
Secondary variant - alternative actions.

Traits§

ButtonVariant
Trait for button variants with compile-time style resolution.
InputVariant
Trait for input variants.