components/buttons/buttons library
Mihr UI button component library.
Provides 6 button types following the Mihr UI hierarchy:
- MihrPrimaryButton — solid brand fill, highest weight
- MihrSoftPrimaryButton — tinted brand fill, no border
- MihrSecondaryButton — outlined with gray border
- MihrTertiaryButton — ghost / transparent
- MihrLinkButton — inline text link (brand or gray)
- MihrDestructiveButton — error variants (primary/soft/secondary/tertiary/link)
All styling flows through MihrButtonThemeData (single ThemeExtension) and MihrButtonDefaults (shared style source).
Classes
- MihrButtonBase
- Abstract base for all Mihr button widgets.
- MihrButtonContainer
- Custom button surface that supports both outer and inner shadows.
- MihrButtonData
- Exposes resolved button colors to descendant widgets.
- MihrButtonDefaults
- Single source of truth for button styles.
- MihrButtonShadows
- Shadow configuration for Mihr buttons.
- MihrButtonThemeData
- Unified theme configuration for all Mihr button variants.
- MihrDestructiveButton
- Destructive button — for dangerous / irreversible actions.
- MihrLinkButton
- Inline text link button — no background, padding, or shadow.
- MihrPrimaryButton
- Solid brand-fill button — highest visual weight in the hierarchy.
- MihrSecondaryButton
- Outlined button with gray border — medium visual weight.
- MihrSoftPrimaryButton
- Soft brand-fill button — tinted brand bg with brand text.
- MihrTertiaryButton
- Ghost button — transparent background, no border or shadow.
Enums
- MihrButtonSize
- Standard button size variants with layout metrics.