Files
pocket-id-pocket-id-2/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte

21 lines
483 B
Svelte
Raw Normal View History

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';
import { cn, type WithElementRef } from '$lib/utils/style.js';
2024-08-12 11:00:25 +02:00
let {
ref = $bindable(null),
class: className,
children,
...restProps
}: WithElementRef<HTMLAttributes<HTMLSpanElement>> = $props();
2024-08-12 11:00:25 +02:00
</script>
<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>