// IMPORTS --------------------------------------------------------------------- import lustre/attribute.{type Attribute, attribute} import lustre/element.{type Element} import lustre/element/html // ELEMENTS -------------------------------------------------------------------- /// A stack is a list of elements perpendicular to the current writing direction /// with a uniform gap between each child. For a horizontal writing mode such as /// English, the stack will be vertical. /// /// By default a medium-sized gap is used, based on Lustre UI's spacing scale. /// You can use the `packged`, `tight`, or `loose` attributes to change the gap. /// pub fn stack( attributes: List(Attribute(msg)), children: List(Element(msg)), ) -> Element(msg) { of(html.div, attributes, children) } /// By default the stack element uses a `
` as its container. You can use /// this function to use a different element such as a `