gbr/ui/typo

⌨ Gleam UI typography super element.

Types

Typo super element.

pub opaque type UITypo
pub type UITypos =
  List(UITypo)

Values

pub fn class(in: UITypo, class: String) -> UITypo

Set typo class attribute

  • class: Class attribute value
pub fn grouped(in: List(UITypo)) -> List(element.Element(a))

Render grouped typos layout.

pub fn h4(text: String) -> UITypo

Text super element.

pub fn inline(in: List(UITypo)) -> element.Element(a)

Render inline typos layout.

pub fn p(text: String) -> UITypo

Paragraph super element.

pub fn render(in: UITypo) -> element.Element(a)

Render typo super element to lustre/element.{type Element}.

pub fn span(text: String) -> UITypo

Text super element.

pub fn styled(
  in: List(UITypo),
  class: String,
) -> element.Element(a)

Render horizontal typos layout.

pub fn text(in: UITypo, text: String) -> UITypo

Replace text string in typo element

  • text: Text to replace

For construct see span or p or h4

Search Document