gbr/ui/theme/lustre/badge

GBR: UI Admin Badge Module

Types

pub type UIBadge {
  UIBadge(
    text: String,
    size: theme.UISize,
    direction: theme.UIAbsolute,
  )
}

Constructors

Values

pub fn new(text: String) -> UIBadge
pub fn view(
  badge: UIBadge,
  theme: theme.UITheme(lustre.UILustre),
  a: List(attribute.Attribute(a)),
  e: List(element.Element(a)),
) -> element.Element(a)
pub fn with_direction(
  badge: UIBadge,
  direction: theme.UIAbsolute,
) -> UIBadge
pub fn with_text(badge: UIBadge, text: String) -> UIBadge
✨ Search Document