mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-20 00:54:19 +02:00
work on the frontend for the movies
This commit is contained in:
19
web/src/lib/components/ui/menubar/menubar-trigger.svelte
Normal file
19
web/src/lib/components/ui/menubar/menubar-trigger.svelte
Normal file
@@ -0,0 +1,19 @@
|
||||
<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
|
||||
{...restProps}
|
||||
bind:ref
|
||||
class={cn(
|
||||
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none",
|
||||
className
|
||||
)}
|
||||
/>
|
||||
Reference in New Issue
Block a user