Breadcrumb
Navigation trail showing page hierarchy
Accessibility
- Use concise, descriptive labels so navigation items are understandable when announced out of context.
- Preserve the expected keyboard model and expose current or selected state where relevant.
- Keep focus on the treeitem and follow the standard arrow-key tree model for expand, collapse, and traversal.
Styled quick start
Copy this entrypoint first. It includes the imports required to get the component on screen.
svelte
<script lang="ts">
import '@dryui/ui/themes/default.css';
import '@dryui/ui/themes/dark.css';
import { Breadcrumb } from '@dryui/ui';
</script>
<Breadcrumb.Root>
<Breadcrumb.List>
<Breadcrumb.Item>
<Breadcrumb.Link href="/">Home</Breadcrumb.Link>
</Breadcrumb.Item>
<Breadcrumb.Separator />
<Breadcrumb.Item>
<Breadcrumb.Link href="/docs">Docs</Breadcrumb.Link>
</Breadcrumb.Item>
<Breadcrumb.Separator />
<Breadcrumb.Item>
<Breadcrumb.Link current>Current</Breadcrumb.Link>
</Breadcrumb.Item>
</Breadcrumb.List>
</Breadcrumb.Root> Import options
Root package
ts
import { Breadcrumb } from '@dryui/ui' Per-component subpath
ts
import { Breadcrumb } from '@dryui/ui/breadcrumb' API
Props, CSS variables, and the public data attributes you can target when styling.
| Prop | Type | Description | Default | Required | Bindable |
|---|---|---|---|---|---|
Breadcrumb.Root | |||||
| children | Snippet | Content rendered inside the component. | — | ✓ | — |
Breadcrumb.List | |||||
| children | Snippet | Content rendered inside the component. | — | ✓ | — |
Breadcrumb.Item | |||||
| children | Snippet | Content rendered inside the component. | — | ✓ | — |
Breadcrumb.Link | |||||
| href | string | Destination URL when the component renders as a link. | — | — | — |
| current | boolean | — | false | — | — |
| children | Snippet | Content rendered inside the component. | — | ✓ | — |
Breadcrumb.Separator | |||||
| children | Snippet | Content rendered inside the component. | — | — | — |