mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-24 05:54:42 +03:00
23 lines
641 B
Svelte
23 lines
641 B
Svelte
<script lang="ts">
|
|
import { Popover as PopoverPrimitive } from "bits-ui";
|
|
import { cn, flyAndScale } from "$lib/utils/style.js";
|
|
|
|
type $$Props = PopoverPrimitive.ContentProps;
|
|
let className: $$Props["class"] = undefined;
|
|
export let transition: $$Props["transition"] = flyAndScale;
|
|
export let transitionConfig: $$Props["transitionConfig"] = undefined;
|
|
export { className as class };
|
|
</script>
|
|
|
|
<PopoverPrimitive.Content
|
|
{transition}
|
|
{transitionConfig}
|
|
class={cn(
|
|
"bg-popover text-popover-foreground z-50 w-72 rounded-md border p-4 shadow-md outline-none",
|
|
className
|
|
)}
|
|
{...$$restProps}
|
|
>
|
|
<slot />
|
|
</PopoverPrimitive.Content>
|