Prebuilt Layer Layer III
Breadcrumb
A navigation aid that allows users to keep track of their location within programs, documents, or websites.
01
Props
| Prop | Type | Default | Description |
|---|---|---|---|
id | string | required | The unique identifier for the component wrapper. |
items | Array<{ label: string; href: string }> | [] | An array of breadcrumb items. |
separator | string | Snippet | '/' | The separator element between items. |
variant | string | '' | User-defined variant name, added to the root element. Style it with a CSS rule that starts from the root. |
02
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.
1
<script>2
import { Breadcrumb } from 'fluid-ui-svelte/prebuilt';3
4
const items = [5
{ label: 'Home', href: '/' },6
{ label: 'Prebuilt', href: '/documentation/prebuilt' },7
{ label: 'Breadcrumb', href: '/documentation/prebuilt/breadcrumb' }8
];9
</script>10
11
<Breadcrumb {items} />2. Custom Separator
You can provide a custom string or snippet as a separator.
1
<script>2
import { Breadcrumb } from 'fluid-ui-svelte/prebuilt';3
</script>4
5
<Breadcrumb 6
{items} 7
separator=">" 8
/>