ui/toggle_button

Types

pub type Size {
  Small
  Medium
  Large
}

Constructors

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

Constructors

  • Default
  • Secondary
  • Outline

Values

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