mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-17 23:53:27 +02:00
20 lines
538 B
Svelte
20 lines
538 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.TriggerProps = $props();
|
|
</script>
|
|
|
|
<MenubarPrimitive.Trigger
|
|
bind:ref
|
|
class={cn(
|
|
'flex cursor-default items-center rounded-sm px-3 py-1 text-sm font-medium outline-none select-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',
|
|
className
|
|
)}
|
|
{...restProps}
|
|
/>
|