TempMonitor/src/lib/components/ui/breadcrumb/breadcrumb-list.svelte

24 lines
518 B
Svelte
Raw Normal View History

2025-05-19 16:25:20 +02:00
<script lang="ts">
import type { HTMLOlAttributes } from "svelte/elements";
import { cn, type WithElementRef } from "$lib/utils.js";
2025-05-18 13:18:46 +02:00
2025-05-19 16:25:20 +02:00
let {
ref = $bindable(null),
class: className,
children,
...restProps
}: WithElementRef<HTMLOlAttributes> = $props();
2025-05-18 13:18:46 +02:00
</script>
<ol
bind:this={ref}
2025-05-19 16:25:20 +02:00
data-slot="breadcrumb-list"
2025-05-18 13:18:46 +02:00
class={cn(
2025-05-19 16:25:20 +02:00
"text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",
2025-05-18 13:18:46 +02:00
className,
)}
{...restProps}
>
{@render children?.()}
</ol>