howdy/ui/breadcrumb

Breadcrumbs: the trail of pages above the current one.

breadcrumb.breadcrumb(words.english(), [], [
  breadcrumb.link("/", [text("Home")]),
  breadcrumb.ellipsis(),
  breadcrumb.link("/orders", [text("Orders")]),
  breadcrumb.page([text("#1042")]),
])

Values

pub fn breadcrumb(
  words: words.Words,
  attributes: List(attribute.Attribute(msg)),
  items: List(element.Element(msg)),
) -> element.Element(msg)

The trail, named for screen readers by the words’ breadcrumb.

pub fn classes() -> List(css.Class)

Every class this module uses, for howdy/ui/export.

pub fn ellipsis() -> element.Element(msg)

Pages left out of a long trail.

pub fn item_class() -> css.Class
pub fn link(
  href: String,
  children: List(element.Element(msg)),
) -> element.Element(msg)
pub fn link_class() -> css.Class
pub fn list_class() -> css.Class
pub fn page(
  children: List(element.Element(msg)),
) -> element.Element(msg)

The page being shown, last in the trail.

pub fn page_class() -> css.Class
✨ Search Document