Files
claddcn-svelte/registry/ui/context-menu/context-menu-shortcut.svelte
T
2026-09-22 02:24:49 +02:00

21 lines
492 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}
data-slot="context-menu-shortcut"
class={cn('ms-auto font-mono text-cladd-2xs tracking-widest text-cladd-fg-softer', className)}
{...restProps}
>
{@render children?.()}
</span>