Breadcrumbs
Svelte ComponentDisplays the current navigation hierarchy.
Import
Package
Source
Docs
WAI-ARIA
Examples
Usage
<Breadcrumb>
<Crumb href='/'>
<svelte:fragment slot="lead">(icon)</svelte:fragment>
<span>(page)</span>
</Crumb>
<Crumb>(current)</Crumb>
</Breadcrumb>
Seperator
Use the seperator
prop to define a custom seperator character. Accepts any valid HTML value, including unicode and emojii.
<Breadcrumb separator="♥"></Breadcrumb>
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>