{"slug":"breadcrumb","name":"Breadcrumb","category":"Layout & Navigation","summary":"Shows the path to the current page.","status":"stable","since":"0.2.0","import":"import { Breadcrumb } from '@elluzion/iv-ui';","usage":["The last item without `href` renders as the current page.","Pass a `separator` snippet to replace the default chevron.","`ariaLabel` names the navigation landmark."],"props":[{"name":"items","type":"BreadcrumbItem[]","default":null,"description":"Trail entries. The last item is rendered as the current page.","required":true,"bindable":false},{"name":"ariaLabel","type":"string","default":"'Breadcrumb'","description":"Accessible name for the navigation landmark.","required":false,"bindable":false},{"name":"className","type":"string","default":"''","description":"Extra classes merged onto the root element.","required":false,"bindable":false}],"events":[],"snippets":[{"name":"separator","type":"Snippet","default":null,"description":"Custom separator snippet; defaults to `/`.","required":false,"bindable":false}],"types":[{"name":"BreadcrumbItem","kind":"type","code":"type BreadcrumbItem = {\n\tlabel: string;\n\thref?: string;\n\ticon?: Snippet;\n};","description":"One entry in a breadcrumb trail."}],"manual":[],"tokens":["--iv_breadcrumb-pad-x","--iv_ease-in-out","--iv_font-mono","--iv_foreground","--iv_foreground-dim","--iv_leading-base","--iv_radius-sm","--iv_ring","--iv_ring-width","--iv_spacing-xs","--iv_surface-overlay","--iv_text-sm","--iv_transition-base","--iv_weight-medium"],"cssHooks":["iv-breadcrumb","iv-breadcrumb-item","iv-breadcrumb-sep"],"accessibility":{"notes":["The trail is a `<nav>` with an accessible name.","The current page uses `aria-current=\"page\"`.","Separators are hidden from assistive technology."]},"related":[{"title":"Tabs","summary":"Switches between panels that share one context.","url":"/components/tabs","kind":"Component"},{"title":"Card","summary":"A bordered surface for grouped content and actions.","url":"/components/card","kind":"Component"},{"title":"Article","summary":"A readable page body with an optional title and standfirst.","url":"/components/article","kind":"Component"},{"title":"Separator","summary":"A hairline rule that separates content.","url":"/components/separator","kind":"Component"}],"examples":[{"id":"basic","title":"Basic","description":"Links for ancestors and plain text for the current page.","code":"<script lang=\"ts\">\n\timport { Breadcrumb } from '@elluzion/iv-ui';\n\n\tconst items = [\n\t\t{ label: 'Projects', href: '#' },\n\t\t{ label: 'Orbital', href: '#' },\n\t\t{ label: 'Deployments' }\n\t];\n</script>\n\n<Breadcrumb {items} />"},{"id":"icons","title":"Icons","description":"Each item can carry an icon snippet before its label.","code":"<script lang=\"ts\">\n\timport { IconFolder, IconHome } from '@tabler/icons-svelte';\n\timport { Breadcrumb } from '@elluzion/iv-ui';\n</script>\n\n{#snippet home()}<IconHome size={12} />{/snippet}\n{#snippet folder()}<IconFolder size={12} />{/snippet}\n\n<Breadcrumb\n\titems={[\n\t\t{ label: 'Home', href: '#', icon: home },\n\t\t{ label: 'Projects', href: '#', icon: folder },\n\t\t{ label: 'Orbital' }\n\t]}\n/>"},{"id":"separator","title":"Custom separator","description":"The `separator` snippet replaces the chevron.","code":"<script lang=\"ts\">\n\timport { Breadcrumb } from '@elluzion/iv-ui';\n\n\tconst items = [\n\t\t{ label: 'Projects', href: '#' },\n\t\t{ label: 'Orbital', href: '#' },\n\t\t{ label: 'Settings' }\n\t];\n</script>\n\n{#snippet separator()}<span class=\"sep\">/</span>{/snippet}\n\n<Breadcrumb {items} {separator} />\n\n<style>\n\t.sep {\n\t\tfont-family: var(--iv_font-mono);\n\t\tfont-size: var(--iv_text-sm);\n\t\tcolor: var(--iv_bracket);\n\t}\n</style>"}],"markdown":"/components/breadcrumb.md","page":"/components/breadcrumb"}