Breadcrumbs
Svelte ComponentDisplays the current navigation hierarchy.
Import
Package
Source
Doc
WAI-ARIA
Examples
Getting Started
<Breadcrumb>
<Crumb href='/'>
<svelte:fragment slot="lead">(icon)</svelte:fragment>
<span>(page)</span>
</Crumb>
<Crumb>(current)</Crumb>
</Breadcrumb>
Set the Seperator
Use the seperator
prop to define a custom seperator character. Accepts any valid HTML value, including unicode and emojii.
<Breadcrumb separator="♥"></Breadcrumb>
Define Current Page
Crumbs without a href
attribute are treated as the current page. This means they render as span
and
do not append a trailing separator.
<Crumb>Current</Crumb>