// IMPORTS --------------------------------------------------------------------- import lustre/attribute.{type Attribute, attribute} import lustre/element.{type Element} import lustre/element/html // ELEMENTS -------------------------------------------------------------------- /// A styled native HTML button. You can use the `solid`, `soft`, and `outline` /// attributes to configure the button's appearance. /// pub fn button(attributes: List(Attribute(msg)), children: List(Element(msg))) { html.button( [ attribute.class("lustre-ui-button"), attribute.type_("button"), ..attributes ], children, ) } /// Use this function if you want to render something other than a `