lustre/element

To read the full documentation for this module, please visit https://lustre.build/api/lustre/element

Types

pub opaque type Element(msg)

Functions

pub fn element(tag: String, attrs: List(Attribute(a)), children: List(
    Element(a),
  )) -> Element(a)
pub fn map(element: Element(a), f: fn(a) -> b) -> Element(b)
pub fn namespaced(namespace: String, tag: String, attrs: List(
    Attribute(a),
  ), children: List(Element(a))) -> Element(a)
pub fn text(content: String) -> Element(a)
pub fn to_string(element: Element(a)) -> String
pub fn to_string_builder(element: Element(a), raw_text: Bool) -> StringBuilder
Search Document