ui/button

Types

pub type Size {
  Small
  Medium
  Large
}

Constructors

  • Small
  • Medium
  • Large
pub type Variant {
  Default
  Secondary
  Destructive
  Outline
  Ghost
  Link
}

Constructors

  • Default
  • Secondary
  • Destructive
  • Outline
  • Ghost
  • Link

Values

pub fn button(
  attributes: List(attribute.Attribute(a)),
  children: List(element.Element(a)),
) -> element.Element(a)
pub fn icon() -> attribute.Attribute(a)
pub fn pressed(is_pressed: Bool) -> attribute.Attribute(a)
pub fn size(s: Size) -> attribute.Attribute(a)
Search Document