gbr/ui/logo

Gleam UI logo super element.

Types

Logotype super element.

  • href: Link location on clicked
  • img: Image super element info
pub opaque type UILogo

Values

pub fn alt(in: UILogo, alt: String) -> UILogo

Set logo img alt text

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

Set logo class attribute

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

Set log content class attribute

pub fn class_small(in: UILogo, class: String) -> UILogo

Set logo small class attribute

pub fn href(in: UILogo, href: String) -> UILogo

Set logotype href link.

pub fn icon(in: UILogo, icon: String) -> UILogo

Set logo icon to dark mode.

pub fn icon_only(in: UILogo, icon_only: Bool) -> UILogo

Set logo icon only show

  • icon_only: If show only icon or not
pub fn new(href: String) -> UILogo

New logotype image super element.

  • href: Link location on clicked
pub fn render(in: UILogo) -> element.Element(a)

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

pub fn src(in: UILogo, src: String) -> UILogo

Set logo img

This function always create a new gbr/ui/img element.

  • src: Image source path lustre/attribute.src
pub fn src_dark(in: UILogo, dark: String) -> UILogo

Set logo img to dark mode.

pub fn text(in: UILogo, text: List(typo.UITypo)) -> UILogo

Set typos to logo text

  • text: gbr/ui/typo list to show logo text
Search Document