2025-11-01 16:18:29 +01:00
|
|
|
<script lang="ts">
|
|
|
|
|
import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
|
|
|
|
|
import { cn } from '../../tools';
|
|
|
|
|
|
|
|
|
|
let { ref = $bindable(null), class: className, ...restProps }: DropdownMenuPrimitive.SubContentProps = $props();
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<DropdownMenuPrimitive.SubContent
|
|
|
|
|
bind:ref
|
|
|
|
|
data-slot="dropdown-menu-sub-content"
|
|
|
|
|
class={cn(
|
2025-11-24 01:00:50 +01:00
|
|
|
'ui:bg-popover ui:text-popover-foreground ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=open]:fade-in-0 ui:data-[state=closed]:zoom-out-95 ui:data-[state=open]:zoom-in-95 ui:data-[side=bottom]:slide-in-from-top-2 ui:data-[side=left]:slide-in-from-right-2 ui:data-[side=right]:slide-in-from-left-2 ui:data-[side=top]:slide-in-from-bottom-2 ui:origin-(--bits-dropdown-menu-content-transform-origin) ui:z-50 ui:min-w-32 ui:overflow-hidden ui:rounded-md ui:border ui:p-1 ui:shadow-lg',
|
2025-11-01 16:18:29 +01:00
|
|
|
className
|
|
|
|
|
)}
|
|
|
|
|
{...restProps}
|
|
|
|
|
/>
|