mirror of https://github.com/TZGyn/shortener
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
730 B
Svelte
25 lines
730 B
Svelte
<script lang="ts">
|
|
import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui'
|
|
import { cn, flyAndScale } from '$lib/utils'
|
|
|
|
type $$Props = DropdownMenuPrimitive.ContentProps
|
|
type $$Events = DropdownMenuPrimitive.ContentEvents
|
|
|
|
let className: $$Props['class'] = undefined
|
|
export let transition: $$Props['transition'] = flyAndScale
|
|
export let transitionConfig: $$Props['transitionConfig'] = undefined
|
|
export { className as class }
|
|
</script>
|
|
|
|
<DropdownMenuPrimitive.Content
|
|
{transition}
|
|
{transitionConfig}
|
|
class={cn(
|
|
'z-50 min-w-[8rem] rounded-md border bg-popover p-1 text-popover-foreground shadow-md focus:outline-none',
|
|
className,
|
|
)}
|
|
{...$$restProps}
|
|
on:keydown>
|
|
<slot />
|
|
</DropdownMenuPrimitive.Content>
|