2024-07-15 13:19:56 +02:00
|
|
|
<script lang="ts">
|
|
|
|
|
import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
|
2026-04-06 18:22:01 +02:00
|
|
|
import {
|
|
|
|
|
buttonVariants,
|
|
|
|
|
type ButtonVariant,
|
|
|
|
|
type ButtonSize,
|
|
|
|
|
} from "$lib/components/ui/button/index.js";
|
2024-07-15 13:19:56 +02:00
|
|
|
import { cn } from "$lib/utils.js";
|
|
|
|
|
|
2025-06-08 16:32:41 +02:00
|
|
|
let {
|
|
|
|
|
ref = $bindable(null),
|
|
|
|
|
class: className,
|
2026-04-06 18:22:01 +02:00
|
|
|
variant = "outline",
|
|
|
|
|
size = "default",
|
2025-06-08 16:32:41 +02:00
|
|
|
...restProps
|
2026-04-06 18:22:01 +02:00
|
|
|
}: AlertDialogPrimitive.CancelProps & {
|
|
|
|
|
variant?: ButtonVariant;
|
|
|
|
|
size?: ButtonSize;
|
|
|
|
|
} = $props();
|
2024-07-15 13:19:56 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<AlertDialogPrimitive.Cancel
|
2025-06-08 16:32:41 +02:00
|
|
|
bind:ref
|
2025-06-21 21:07:36 +02:00
|
|
|
data-slot="alert-dialog-cancel"
|
2026-04-06 18:22:01 +02:00
|
|
|
class={cn(buttonVariants({ variant, size }), "cn-alert-dialog-cancel", className)}
|
2025-06-08 16:32:41 +02:00
|
|
|
{...restProps}
|
|
|
|
|
/>
|