Files
pocket-id/frontend/src/lib/components/ui/alert-dialog/alert-dialog-cancel.svelte

19 lines
478 B
Svelte
Raw Normal View History

2024-08-12 11:00:25 +02:00
<script lang="ts">
2025-01-19 15:41:16 +01:00
import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
import { buttonVariants } from '$lib/components/ui/button/index.js';
import { cn } from '$lib/utils/style.js';
2024-08-12 11:00:25 +02:00
let {
ref = $bindable(null),
class: className,
...restProps
}: AlertDialogPrimitive.CancelProps = $props();
2024-08-12 11:00:25 +02:00
</script>
<AlertDialogPrimitive.Cancel
bind:ref
data-slot="alert-dialog-cancel"
class={cn(buttonVariants({ variant: 'outline' }), className)}
{...restProps}
/>