lotusui the ikaito design language for Gio — desktop, mobile, web
GitHub

Breadcrumb

The path to the current page: muted ancestors, chevrons, current in ink.

Ancestor labels in muted ink separated by chevrons; the last label is the current page and never interactive. Pass clickables to make ancestors navigate. The shadcn demo collapses middle segments behind BreadcrumbEllipsis wrapped in a DropdownMenuTrigger (icon-only ghost) — click the dots to reach the hidden trail.

Installation

Use the module import (the default), or own the source: lotusui add vendors the component into your app and lotusui update keeps the copy mergeable — see Registry.

Go
go get github.com/ikaito-com/lotusui

# or vendor the source into your app:
go run github.com/ikaito-com/lotusui/cmd/lotusui add breadcrumb

Usage

The primary demo mirrors shadcn's: Home, an ellipsis menu (Documentation / Themes / GitHub), Components, Breadcrumb.

Go
var menu = lotusui.DropdownMenuTrigger{
	Variant: lotusui.ButtonGhost, Icon: lotusui.IconMoreHorizontal, Size: lotusui.SizeSM, Width: 160,
}
menu.Layout(th, gtx, "",
	lotusui.DropdownMenuItem(th, &docs, "Documentation", false),
	lotusui.DropdownMenuItem(th, &themes, "Themes", false),
	lotusui.DropdownMenuItem(th, &github, "GitHub", false),
)

Custom separator

The composable pieces — BreadcrumbLink, BreadcrumbPage, BreadcrumbSep — build custom trails; pass any icon as the separator.

Go
layout.Flex{Alignment: layout.Middle}.Layout(gtx,
	layout.Rigid(lotusui.BreadcrumbLink(th, &home, "Home")),
	layout.Rigid(lotusui.BreadcrumbSep(th, lotusui.IconDot)),
	layout.Rigid(lotusui.BreadcrumbPage(th, "Breadcrumb")),
)

Collapsed

BreadcrumbEllipsis is the bare collapsed-depth mark (shadcn's "Collapsed"). Wire it to a menu as in Usage when the dots should reveal the hidden trail.

Go
lotusui.BreadcrumbEllipsis(th)

API

OptionTypeDescription
btns[]*widget.ClickableIndex-aligned; makes ancestor labels clickable, nil = static.
labels...stringThe path; the LAST label is the current page, never interactive.
BreadcrumbLink / BreadcrumbPagewidgetThe composable pieces: clickable ancestor; current page.
BreadcrumbSep(th, icon)widgetBetween-items glyph; empty icon = the chevron.
BreadcrumbEllipsis(th)widgetCollapsed-depth mark — compose with DropdownMenuTrigger{Icon: IconMoreHorizontal} for the interactive demo.

Every demo on this site is the real Go component compiled to WebAssembly — one gallery app, one bundle, addressed by URL hash.