Breadcrumb

Displays the path to the current resource using a hierarchy of links.

Basic

A basic breadcrumb with a home link and a components link.

Custom Separator

BreadcrumbSeparator can take children to create a custom separator.

Dropdown

BreadcrumbItem and DropdownMenu can be composed.

Collapsed

Use BreadcrumbEllipsis to show a collapsed state when the breadcrumb is too long.

Anatomy

Import all parts and piece them together.

use leptos::prelude::*;
use singlestage*;

#[component]
pub fn BreadcrumbAnatomy() -> impl IntoView {
    view! {
        <Breadcrumb>
            <BreadcrumbList>
                <BreadcrumbItem />
                <BreadcrumbSeparator />
                <BreadcrumbItem>
                    <BreadcrumbEllipsis />
                </BreadcrumbItem>
                <BreadcrumbSeparator>
                    {icon!(icondata::LuDot)}
                </BreadcrumbSeparator>
                <BreadcrumbPage />
            </BreadcrumbList>
        </Breadcrumb>
    }
}

API Reference

Breadcrumb

Contains all the items of the breadcrumb component.

Implements global attributes.

BreadcrumbEllipsis

Displays an ellipsis in place of collapsed breadcrumb items.

Implements global attributes.

BreadcrumbItem

An individual breadcrumb link.

Implements global and li attributes.

BreadcrumbList

Displays the ordered list of breadcrumb items.

Custom Attributes
NameTypeDefaultDescription
number_typeusize1

Renamed <ol> `type` attribute to avoid name collisions.

Implements global and ol attributes.

BreadcrumbPage

Displays the current page in the breadcrumb (non-clickable).

Implements global attributes.

BreadcrumbSeparator

Separates breadcrumb items. Can render any children as a custom marker.

Implements global and li attributes.