mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 19:01:05 +00:00
26 lines
707 B
Svelte
26 lines
707 B
Svelte
<script>
|
|
/** Set to `true` to hide the breadcrumb trailing slash */
|
|
export let noTrailingSlash = false;
|
|
|
|
/** Specify the number of breadcrumb items to render */
|
|
export let count = 3;
|
|
</script>
|
|
|
|
<!-- svelte-ignore a11y-mouse-events-have-key-events -->
|
|
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
<div
|
|
class:bx--skeleton={true}
|
|
class:bx--breadcrumb={true}
|
|
class:bx--breadcrumb--no-trailing-slash={noTrailingSlash}
|
|
{...$$restProps}
|
|
on:click
|
|
on:mouseover
|
|
on:mouseenter
|
|
on:mouseleave
|
|
>
|
|
{#each Array.from({ length: count }, (_, i) => i) as item (item)}
|
|
<div class:bx--breadcrumb-item={true}>
|
|
<span class:bx--link={true}> </span>
|
|
</div>
|
|
{/each}
|
|
</div>
|