mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
24 lines
507 B
Svelte
24 lines
507 B
Svelte
<script>
|
|
let className = undefined;
|
|
export { className as class };
|
|
export let noTrailingSlash = false;
|
|
export let style = undefined;
|
|
|
|
import { cx } from '../../lib';
|
|
|
|
const ariaLabel = $$props['aria-label'] || 'Breadcrumb';
|
|
const _class = cx('--breadcrumb', noTrailingSlash && '--breadcrumb--no-trailing-slash');
|
|
</script>
|
|
|
|
<nav
|
|
on:click
|
|
on:mouseover
|
|
on:mouseenter
|
|
on:mouseleave
|
|
aria-label={ariaLabel}
|
|
class={className}
|
|
{style}>
|
|
<ol class={_class}>
|
|
<slot />
|
|
</ol>
|
|
</nav>
|