Breadcrumb

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

  1. Home
  2. Components
  3. Breadcrumb

Anatomy

Import all parts and piece them together.

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

#[component]
pub fn BreadcrumbAnatomy() -> impl IntoView {
    view! {
        <Breadcrumb>
            <BreadcrumbItem />
            <BreadcrumbSeparator />
        </Breadcrumb>
    }
}

API Reference

Breadcrumb

Contains the contents of the breadcrumb.

Custom Attributes
NameTypeDefaultDescription
number_typeusize1

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

Implements global and ol attributes.

BreadcrumbItem

An individual breadcrumb link.

Implements global and li attributes.

BreadcrumbSeparator

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

Implements global and li attributes.