lustre/ui/field

Functions

pub fn error() -> Attribute(a)
pub fn field(
  attributes: List(Attribute(a)),
  label: List(Element(a)),
  input: Element(a),
  message: List(Element(a)),
) -> Element(a)
pub fn greyscale() -> Attribute(a)
pub fn info() -> Attribute(a)
pub fn label_centre() -> Attribute(a)
pub fn label_end() -> Attribute(a)
pub fn label_start() -> Attribute(a)
pub fn message_centre() -> Attribute(a)
pub fn message_end() -> Attribute(a)
pub fn message_start() -> Attribute(a)
pub fn of(
  element: fn(List(Attribute(a)), List(Element(a))) -> Element(a),
  attributes: List(Attribute(a)),
  label: List(Element(a)),
  input: Element(a),
  message: List(Element(a)),
) -> Element(a)
pub fn primary() -> Attribute(a)
pub fn success() -> Attribute(a)
pub fn warning() -> Attribute(a)
pub fn with_label(
  attributes: List(Attribute(a)),
  label: List(Element(a)),
  input: Element(a),
) -> Element(a)
pub fn with_message(
  attributes: List(Attribute(a)),
  input: Element(a),
  message: List(Element(a)),
) -> Element(a)
Search Document