Breadcrumb

Show the current location and its parent path concisely.

Live preview
Interact with the component to see results here.
View code
HTML
<sy-breadcrumb separator="slash">
  <sy-breadcrumb-item>Home</sy-breadcrumb-item>
  <sy-breadcrumb-item>Project</sy-breadcrumb-item>
  <sy-breadcrumb-item active>Design System</sy-breadcrumb-item>
</sy-breadcrumb>

Usage guide

#

Show which parent path contains the current view. Use Navigation for a full menu and Tabs to switch within one area.

  1. Start with the top-level path

    Arrange items from the highest-level view to the current view.

  2. Indicate the current location

    Set active on the current item. The last separator is hidden automatically. Mark inaccessible items with disabled.

  3. Connect navigation

    Read the item element in selected.detail and navigate through your app's router.

Feature examples

#

Choose a feature from 8 topics. Explore property settings, method calls, event results, and slot layouts through live examples and code.

Usage examples · Overview

Try the selected example. Topics with multiple configurations let you switch between detailed examples.

View code
HTML
Loading the example.

Property · Item Active

See how settings change appearance and behavior.

View code
HTML
Loading the example.

Property · Item Disabled

See how settings change appearance and behavior.

View code
HTML
Loading the example.

Property · Item Separator

See how settings change appearance and behavior.

View code
HTML
Loading the example.

Property · Separator

See how settings change appearance and behavior.

View code
HTML
Loading the example.

Events · Item Selected

Interact with the component to see event names and payloads in the live preview below.

View code
HTML
Loading the example.

Events · Selected

Interact with the component to see event names and payloads in the live preview below.

View code
HTML
Loading the example.

Usage examples · Short navigation path

Show a two-level path with an arrow and an active current page.

View code
HTML
<sy-breadcrumb separator="arrow">
  <sy-breadcrumb-item>Home</sy-breadcrumb-item>
  <sy-breadcrumb-item active>Design System</sy-breadcrumb-item>
</sy-breadcrumb>

API reference

#

Hover over a name or focus it with the keyboard to see the code. On touch screens, tap the name.

<sy-breadcrumb>

Properties

Attribute / PropertyTypeDefaultDescription
'slash' | 'arrow''slash'Separator between path segments.

Slots

SlotDescription
Component body or child items.

<sy-breadcrumb-item>

Properties

Attribute / PropertyTypeDefaultDescription
booleanfalseIndicate the current page and prevent selection.
booleanfalseBlock user interaction and keyboard focus.
'slash' | 'arrow'undefinedSeparator between path segments.
'slash' | 'arrow''slash'Set by the parent `sy-breadcrumb` to inherit its separator.
booleanfalseSet by the parent `sy-breadcrumb`. When true, no trailing separator is rendered.

Events

EventDetailDescription
CustomEvent<HTMLSyBreadcrumbItemElement>Emitted when the user selects an item.

Methods

MethodReturnsDescription
Promise<void>Render the component again using its current properties. Normally, property changes or the parent component manage updates.

Slots

SlotDescription
Component body or child items.