Files
gpx.studio/website/src/lib/components/ui/alert-dialog/alert-dialog-overlay.svelte

21 lines
526 B
Svelte
Raw Normal View History

2024-07-15 13:19:56 +02:00
<script lang="ts">
import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
import { cn } from "$lib/utils.js";
2025-06-08 16:32:41 +02:00
let {
ref = $bindable(null),
class: className,
...restProps
}: AlertDialogPrimitive.OverlayProps = $props();
2024-07-15 13:19:56 +02:00
</script>
<AlertDialogPrimitive.Overlay
2025-06-08 16:32:41 +02:00
bind:ref
2025-06-21 21:07:36 +02:00
data-slot="alert-dialog-overlay"
2025-06-08 16:32:41 +02:00
class={cn(
2025-06-21 21:07:36 +02:00
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
2025-06-08 16:32:41 +02:00
className
)}
{...restProps}
2024-07-15 13:19:56 +02:00
/>