Files
classroomio/packages/ui/src/base/dropdown-menu/dropdown-menu-shortcut.svelte
T

21 lines
504 B
Svelte
Raw Normal View History

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"
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>