| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Miso.UI.Badge
Synopsis
- data BadgeProps action = BadgeProps {
- badgeVariant :: Variant
- badgeRounded :: Bool
- badgeHref :: Maybe MisoString
- badgeClasses :: [MisoString]
- badgeAttrs :: [Attribute action]
- defaultBadgeProps :: BadgeProps action
- badge_ :: BadgeProps action -> [View model action] -> View model action
- badgeClass :: BadgeProps action -> MisoString
- badgeSample :: View model action
- badgeCodeSample :: View model action
- badgePropsApi :: View model action
Props
data BadgeProps action Source #
Props for badge_
Constructors
| BadgeProps | |
Fields
| |
defaultBadgeProps :: BadgeProps action Source #
Smart constructor: primary variant, not rounded
Views
badge_ :: BadgeProps action -> [View model action] -> View model action Source #
Badge, driven by BadgeProps
badgeClass :: BadgeProps action -> MisoString Source #
Computes the basecoat badge class (e.g. badge-outline)
Samples
badgeSample :: View model action Source #
badgeCodeSample :: View model action Source #
badgePropsApi :: View model action Source #