mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
22 lines
539 B
Svelte
22 lines
539 B
Svelte
<script>
|
|
// @ts-check
|
|
|
|
/** 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>
|
|
|
|
<div
|
|
class:bx--skeleton="{true}"
|
|
class:bx--breadcrumb="{true}"
|
|
class:bx--breadcrumb--no-trailing-slash="{noTrailingSlash}"
|
|
{...$$restProps}
|
|
>
|
|
{#each Array.from({ length: count }) as item}
|
|
<div class:bx--breadcrumb-item="{true}">
|
|
<span class:bx--link="{true}"> </span>
|
|
</div>
|
|
{/each}
|
|
</div>
|