howdy/ui/badge

Badges: short labels such as a status or a count.

Types

pub type Variant {
  Primary
  Secondary
  Outline
  Danger
}

Constructors

  • Primary

    Filled with the primary colour.

  • Secondary

    Filled with the muted colour.

  • Outline

    Outlined.

  • Danger

    Filled with the danger colour.

Values

pub fn badge(
  variant: Variant,
  attributes: List(attribute.Attribute(msg)),
  children: List(element.Element(msg)),
) -> element.Element(msg)
pub fn badge_class(variant: Variant) -> css.Class
pub fn classes() -> List(css.Class)

Every class this module uses, for howdy/ui/export.

✨ Search Document