24 lines
488 B
Svelte
24 lines
488 B
Svelte
<script lang="ts">
|
|
import type { HTMLOlAttributes } from 'svelte/elements';
|
|
import { cn, type WithElementRef } from '$lib/utils.js';
|
|
|
|
let {
|
|
ref = $bindable(null),
|
|
class: className,
|
|
children,
|
|
...restProps
|
|
}: WithElementRef<HTMLOlAttributes> = $props();
|
|
</script>
|
|
|
|
<ol
|
|
bind:this={ref}
|
|
data-slot="breadcrumb-list"
|
|
class={cn(
|
|
'flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground',
|
|
className
|
|
)}
|
|
{...restProps}
|
|
>
|
|
{@render children?.()}
|
|
</ol>
|