Files
clearity/src/lib/components/ui/breadcrumb/breadcrumb.svelte
T

23 lines
477 B
Svelte

<script lang="ts">
import type { WithElementRef } from '$lib/utils.js';
import type { HTMLAttributes } from 'svelte/elements';
import { cn } from '$lib/utils.js';
let {
ref = $bindable(null),
class: className,
children,
...restProps
}: WithElementRef<HTMLAttributes<HTMLElement>> = $props();
</script>
<nav
bind:this={ref}
data-slot="breadcrumb"
aria-label="breadcrumb"
class={cn('cn-breadcrumb', className)}
{...restProps}
>
{@render children?.()}
</nav>