21 lines
549 B
Svelte
21 lines
549 B
Svelte
<script lang="ts">
|
|
import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
|
|
import { cn } from '$lib/utils.js';
|
|
|
|
let {
|
|
ref = $bindable(null),
|
|
class: className,
|
|
...restProps
|
|
}: AlertDialogPrimitive.OverlayProps = $props();
|
|
</script>
|
|
|
|
<AlertDialogPrimitive.Overlay
|
|
bind:ref
|
|
data-slot="alert-dialog-overlay"
|
|
class={cn(
|
|
'bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 z-50',
|
|
className
|
|
)}
|
|
{...restProps}
|
|
/>
|