Solidtype_heroui.BreadcrumbsHeroUI's Breadcrumbs: the trail of pages to the one shown, each a link but the last, which is the page itself, on Kobalte's Breadcrumbs, with HeroUI's classes from Styles.Breadcrumbs.
<Breadcrumbs>
<Breadcrumbs.Item href="/">"Home"</Breadcrumbs.Item>
<Breadcrumbs.Item href="/docs">"Docs"</Breadcrumbs.Item>
<Breadcrumbs.Item>"Breadcrumbs"</Breadcrumbs.Item>
</Breadcrumbs>The last item is the current page: its link is marked aria-current="page", is disabled, and has no separator after it. A link pressed calls on_action with its item's id; an item without one tells nothing. A link is also disabled while its item or the trail is, and then has no href, as Kobalte's has none.
It is Kobalte's <nav>, named "Breadcrumbs" for a reader, as the pattern for breadcrumbs asks, around HeroUI's <ol>. Each item joins the trail as it is made, and the trail draws them in the order they joined, as React Aria's collection does, so the last is known on the server too and a prerendered page marks it. An item added later, by a For, is drawn after those already there, and the page moves to it if it is last.
An item is drawn by its trail, so a context given between the trail and an item does not reach the item's children.
An item is used inside a Breadcrumbs: elsewhere it raises Invalid_argument as it is made.
module Item : sig ... endOne page of the trail: an <li> holding its link, Kobalte's, and HeroUI's chevron after it, or the trail's separator.
module Props : sig ... endThe trail. separator is drawn between items in place of HeroUI's chevron, inside a <span> that takes HeroUI's separator class and is hidden from a reader: HeroUI gives an element of the user's its class, which a Solid component cannot do to an element already made.
val make : Props.t -> Solidtype.Jsx.elementval component : Props.t Solidtype.Jsx.component