howdy/ui/button_group

Button groups: related buttons joined into one control.

button_group.group(button_group.Horizontal, [attribute.aria_label("Pages")], [
  button.button(Outline, [], [text("Previous")]),
  button.button(Outline, [], [text("Next")]),
])

The buttons keep their own variants; the group squares off the corners where they meet and lets their borders overlap.

Types

pub type Orientation {
  Horizontal
  Vertical
}

Constructors

  • Horizontal
  • Vertical

Values

pub fn classes() -> List(css.Class)

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

pub fn group(
  orientation: Orientation,
  attributes: List(attribute.Attribute(msg)),
  children: List(element.Element(msg)),
) -> element.Element(msg)
pub fn group_class(orientation: Orientation) -> css.Class
✨ Search Document