sketch/lustre/element
This module is a drop-in replacement for lustre/element. Just
use the new functions, and everything will automagically be styled.
Types
Alias for lustre/element.Element.
Lustre Documentation
pub type Element(msg) =
element.Element(msg)
Values
pub fn class_name(class: css.Class) -> String
Generate a class name from a Class, using the StyleSheet injected
in the environment.
pub fn element(
tag tag: String,
class class: css.Class,
attributes attributes: List(attribute.Attribute(msg)),
children children: List(element.Element(msg)),
) -> element.Element(msg)
pub fn element_(
tag tag: String,
attributes attributes: List(attribute.Attribute(msg)),
children children: List(element.Element(msg)),
) -> element.Element(msg)
pub const fragment: fn(List(element.Element(a))) -> element.Element(
a,
)
pub const map: fn(element.Element(a), fn(a) -> b) -> element.Element(
b,
)
pub fn namespaced(
tag tag: String,
namespace namespace: String,
class class: css.Class,
attributes attributes: List(attribute.Attribute(msg)),
children children: List(element.Element(msg)),
) -> element.Element(msg)
pub fn namespaced_(
tag tag: String,
namespace namespace: String,
attributes attributes: List(attribute.Attribute(msg)),
children children: List(element.Element(msg)),
) -> element.Element(msg)