2025-11-01 16:18:29 +01:00
|
|
|
<script lang="ts">
|
|
|
|
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
|
|
|
import { cn, type WithElementRef } from '../../tools';
|
|
|
|
|
|
|
|
|
|
let {
|
|
|
|
|
ref = $bindable(null),
|
|
|
|
|
class: className,
|
|
|
|
|
children,
|
|
|
|
|
...restProps
|
|
|
|
|
}: WithElementRef<HTMLAttributes<HTMLSpanElement>> = $props();
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<span
|
|
|
|
|
bind:this={ref}
|
|
|
|
|
data-slot="dropdown-menu-shortcut"
|
2025-11-24 01:00:50 +01:00
|
|
|
class={cn('ui:text-muted-foreground ui:ml-auto ui:text-xs ui:tracking-widest', className)}
|
2025-11-01 16:18:29 +01:00
|
|
|
{...restProps}
|
|
|
|
|
>
|
|
|
|
|
{@render children?.()}
|
|
|
|
|
</span>
|