mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-19 16:43:32 +02:00
20 lines
432 B
Svelte
20 lines
432 B
Svelte
<script lang="ts">
|
|
import { Menubar as MenubarPrimitive } from 'bits-ui';
|
|
import { cn } from '$lib/utils.js';
|
|
|
|
let {
|
|
ref = $bindable(null),
|
|
class: className,
|
|
...restProps
|
|
}: MenubarPrimitive.SubContentProps = $props();
|
|
</script>
|
|
|
|
<MenubarPrimitive.SubContent
|
|
bind:ref
|
|
class={cn(
|
|
'z-50 min-w-max rounded-md border bg-popover p-1 text-popover-foreground shadow-lg focus:outline-none',
|
|
className
|
|
)}
|
|
{...restProps}
|
|
/>
|