24 lines
500 B
Svelte
24 lines
500 B
Svelte
<script lang="ts">
|
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
import { cn, type WithElementRef } from '$lib/utils.js';
|
|
|
|
let {
|
|
ref = $bindable(null),
|
|
class: className,
|
|
children,
|
|
...restProps
|
|
}: WithElementRef<HTMLAttributes<HTMLSpanElement>> = $props();
|
|
</script>
|
|
|
|
<span
|
|
bind:this={ref}
|
|
data-slot="breadcrumb-page"
|
|
role="link"
|
|
aria-disabled="true"
|
|
aria-current="page"
|
|
class={cn('font-normal text-foreground', className)}
|
|
{...restProps}
|
|
>
|
|
{@render children?.()}
|
|
</span>
|