glaze/basecoat/button_group
Basecoat documentation: https://basecoatui.com/components/button-group/
Joins related buttons into a single control.
Recipe
import glaze/basecoat/button
import glaze/basecoat/button_group
import lustre/element/html
fn actions() {
button_group.button_group([], [
button.outline([], [html.text("Archive")]),
button.outline([], [html.text("Report")]),
])
}
Values
pub fn button_group(
attrs: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)
pub fn separator() -> element.Element(msg)
pub fn text(
attrs: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)
Non-interactive text inside the group, like a label or unit.