Skip to main content
Since Shoelace 2.0 Code stable Pattern stable Figma ready

Breadcrumb Item

sl-breadcrumb-item

Breadcrumb Items are used inside breadcrumbs to represent different links.

Examples

Basic Breadcrumb Item

Finance integrations Start tasks Upload balance
<sl-breadcrumb>
  <sl-breadcrumb-item>
    <sl-icon slot="prefix" library="fa" name="arrow-left"></sl-icon>
    Finance integrations
  </sl-breadcrumb-item>
  <sl-breadcrumb-item>Start tasks</sl-breadcrumb-item>
  <sl-breadcrumb-item>Upload balance</sl-breadcrumb-item>
</sl-breadcrumb>
sl-breadcrumb
  sl-breadcrumb-item
    sl-icon slot="prefix" library="fa" name="fas-arrow-left"
    | Finance integrations
  sl-breadcrumb-item Start tasks
  sl-breadcrumb-item Upload balance

Component Props

Property Default Details
href

string | undefined

Optional URL to direct the user to when the breadcrumb item is activated. When set, a link will be rendered internally. When unset, a button will be rendered instead.

target

'_blank' | '_parent' | '_self' | '_top' | undefined

Tells the browser where to open the link. Only used when href is set.

rel 'noreferrer noopener'

string

The rel attribute to use on the link. Only used when href is set.

updateComplete A read-only promise that resolves when the component has finished updating.

Learn more about attributes and properties.

Slots

Name Details
(default) The breadcrumb item’s label.
prefix An optional prefix, usually an icon or icon button.
suffix An optional suffix, usually an icon or icon button.
separator The separator to use for the breadcrumb item. This will only change the separator for this item. If you want to change it for all items in the group, set the separator on <sl-breadcrumb> instead.

Learn more about using slots.

CSS Parts

Name Description
base The component’s base wrapper.
label The breadcrumb item’s label.
prefix The container that wraps the prefix.
suffix The container that wraps the suffix.
separator The container that wraps the separator.

Learn more about customizing CSS parts.