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

22 lines
603 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
type $$Props = AlertDialogPrimitive.CancelProps;
type $$Events = AlertDialogPrimitive.CancelEvents;
2025-01-19 15:41:16 +01:00
let className: $$Props['class'] = undefined;
2024-08-12 11:00:25 +02:00
export { className as class };
</script>
<AlertDialogPrimitive.Cancel
2025-01-19 15:41:16 +01:00
class={cn(buttonVariants({ variant: 'outline' }), 'mt-2 sm:mt-0', className)}
2024-08-12 11:00:25 +02:00
{...$$restProps}
on:click
on:keydown
let:builder
>
<slot {builder} />
</AlertDialogPrimitive.Cancel>