All checks were successful
Test and deploy staging / staging (push) Successful in 11m52s
23 lines
513 B
Svelte
23 lines
513 B
Svelte
<script lang="ts">
|
|
import { cn, type WithElementRef } from '$lib/utils.js';
|
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
|
|
let {
|
|
ref = $bindable(null),
|
|
class: className,
|
|
children,
|
|
...restProps
|
|
}: WithElementRef<HTMLAttributes<HTMLSpanElement>> = $props();
|
|
</script>
|
|
|
|
<span
|
|
bind:this={ref}
|
|
class={cn(
|
|
"text-muted-foreground gap-2 text-sm [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none",
|
|
className
|
|
)}
|
|
{...restProps}
|
|
>
|
|
{@render children?.()}
|
|
</span>
|