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

Contains the contents of the breadcrumb.

Implements global and li attributes.

BreadcrumbSeparator

Contains the contents of the breadcrumb.

Implements global and li attributes.