Breadcrumb
A navigation aid that allows users to keep track of their location within programs, documents, or websites.
Props
Prop | Type | Default | Description |
|---|---|---|---|
items | Array<{ label: string; href: string }> | [] | An array of breadcrumb items. |
separator | string | Snippet | '/' | The separator element between items. |
variant | string | '' | Custom variant class for theming. |
componentId | string | crypto.randomUUID() | The unique identifier for the component wrapper. |
Samples
Breadcrumb Samples
A navigation aid that allows users to keep track of their location within programs, documents, or websites.
1. Basic Breadcrumb
Standard breadcrumb with default separator.
0
<script>1
import { Breadcrumb } from 'fluid-ui-svelte/components';2
3
const items = [4
{ label: 'Home', href: '/' },5
{ label: 'Components', href: '/documentation/components' },6
{ label: 'Breadcrumb', href: '/documentation/components/breadcrumb' }7
];8
</script>9
10
<Breadcrumb {items} />2. Custom Separator
You can provide a custom string or snippet as a separator.
0
<script>1
import { Breadcrumb } from 'fluid-ui-svelte/components';2
</script>3
4
<Breadcrumb 5
{items} 6
separator=">" 7
/>