Files
personal-website/src/lib/components/ui/popover/popover-content.svelte
Stan Runge cb5fc9d095
All checks were successful
build / build (push) Successful in 47s
build / deploy (push) Successful in 17s
chore: flatten repo
2026-08-26 03:57:15 +00:00

23 lines
635 B
Svelte

<script lang="ts">
import { Popover as PopoverPrimitive } from "bits-ui";
import { cn, flyAndScale } from "$lib/utils.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>