gbr/ui/desc

📝 Gleam UI core description super element.

Types

Text with a description

  • text: Like a title of something
  • desc: Description of this text/title.
pub opaque type UIDesc

Desc render element

  • in: Description info
pub opaque type UIDescRender(a)

Values

pub fn at(
  in: UIDesc,
  inner: List(element.Element(a)),
) -> UIDescRender(a)

new desc render element

  • in: Desc info
pub fn class(in: UIDesc, class: String) -> UIDesc

Replace class attribute

pub fn class_content(in: UIDesc, class: String) -> UIDesc

Replace description class attribute

pub fn class_title(in: UIDesc, class: String) -> UIDesc

Replace text class attribute

pub fn content(in: UIDesc, content: String) -> UIDesc
pub fn new(title: String, content: String) -> UIDesc

New description super element

  • title: Title of description
  • content: Content of description
pub fn render(at: UIDescRender(a)) -> element.Element(a)

Render description element

pub fn title(in: UIDesc, title: String) -> UIDesc
Search Document