Files
claddcn-svelte/registry/ui/breadcrumb/breadcrumb-list.svelte
T
2026-09-22 02:24:49 +02:00

24 lines
510 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-cladd-xs font-medium break-words text-cladd-fg-soft sm:gap-2.5',
className
)}
{...restProps}
>
{@render children?.()}
</ol>