Files
gpx.studio/website/src/lib/components/ui/menubar/menubar-shortcut.svelte

21 lines
468 B
Svelte
Raw Normal View History

2024-04-08 17:12:39 +02:00
<script lang="ts">
import type { HTMLAttributes } from "svelte/elements";
2025-06-08 16:32:41 +02:00
import type { WithElementRef } from "bits-ui";
2024-04-08 17:12:39 +02:00
import { cn } from "$lib/utils.js";
2025-06-08 16:32:41 +02:00
let {
ref = $bindable(null),
class: className,
children,
...restProps
}: WithElementRef<HTMLAttributes<HTMLSpanElement>> = $props();
2024-04-08 17:12:39 +02:00
</script>
<span
2025-06-08 16:32:41 +02:00
bind:this={ref}
class={cn("text-muted-foreground ml-auto text-xs tracking-widest", className)}
{...restProps}
2024-04-08 17:12:39 +02:00
>
2025-06-08 16:32:41 +02:00
{@render children?.()}
2024-04-08 17:12:39 +02:00
</span>