mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-18 17:23:26 +03:00
22 lines
613 B
Svelte
22 lines
613 B
Svelte
|
|
<script lang="ts">
|
||
|
|
import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
|
||
|
|
import { fade } from "svelte/transition";
|
||
|
|
import { cn } from "$lib/utils/style.js";
|
||
|
|
|
||
|
|
type $$Props = AlertDialogPrimitive.OverlayProps;
|
||
|
|
|
||
|
|
let className: $$Props["class"] = undefined;
|
||
|
|
export let transition: $$Props["transition"] = fade;
|
||
|
|
export let transitionConfig: $$Props["transitionConfig"] = {
|
||
|
|
duration: 150,
|
||
|
|
};
|
||
|
|
export { className as class };
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<AlertDialogPrimitive.Overlay
|
||
|
|
{transition}
|
||
|
|
{transitionConfig}
|
||
|
|
class={cn("bg-background/80 fixed inset-0 z-50 backdrop-blur-sm ", className)}
|
||
|
|
{...$$restProps}
|
||
|
|
/>
|