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

Values

pub fn class_name(class: //internal) -> String

Generate a class name from a Class, using the StyleSheet injected in the environment.

pub fn element(
  tag tag: String,
  class class: //internal,
  attributes attributes: List(//internal(msg)),
  children children: List(//internal(msg)),
) -> //internal(msg)
pub fn element_(
  tag tag: String,
  attributes attributes: List(//internal(msg)),
  children children: List(//internal(msg)),
) -> //internal(msg)
pub const fragment: fn(List(//internal(a))) -> //internal(a)
pub const map: fn(//internal(a), fn(a) -> b) -> //internal(b)
pub fn namespaced(
  tag tag: String,
  namespace namespace: String,
  class class: //internal,
  attributes attributes: List(//internal(msg)),
  children children: List(//internal(msg)),
) -> //internal(msg)
pub fn namespaced_(
  tag tag: String,
  namespace namespace: String,
  attributes attributes: List(//internal(msg)),
  children children: List(//internal(msg)),
) -> //internal(msg)
pub const none: fn() -> //internal(a)
pub const text: fn(String) -> //internal(a)
Search Document