2024-08-12 11:00:25 +02:00
|
|
|
<script lang="ts">
|
2025-01-19 15:41:16 +01:00
|
|
|
import type { HTMLAttributes } from 'svelte/elements';
|
2025-05-21 12:15:27 -05:00
|
|
|
import { cn, type WithElementRef } from '$lib/utils/style.js';
|
2024-08-12 11:00:25 +02:00
|
|
|
|
2025-05-21 12:15:27 -05:00
|
|
|
let {
|
|
|
|
|
ref = $bindable(null),
|
|
|
|
|
class: className,
|
|
|
|
|
children,
|
|
|
|
|
...restProps
|
|
|
|
|
}: WithElementRef<HTMLAttributes<HTMLSpanElement>> = $props();
|
2024-08-12 11:00:25 +02:00
|
|
|
</script>
|
|
|
|
|
|
2025-05-21 12:15:27 -05:00
|
|
|
<span
|
|
|
|
|
bind:this={ref}
|
|
|
|
|
data-slot="dropdown-menu-shortcut"
|
|
|
|
|
class={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)}
|
|
|
|
|
{...restProps}
|
|
|
|
|
>
|
|
|
|
|
{@render children?.()}
|
2024-08-12 11:00:25 +02:00
|
|
|
</span>
|