mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-18 09:13:26 +03:00
22 lines
603 B
Svelte
22 lines
603 B
Svelte
|
|
<script lang="ts">
|
||
|
|
import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
|
||
|
|
import { buttonVariants } from "$lib/components/ui/button/index.js";
|
||
|
|
import { cn } from "$lib/utils/style.js";
|
||
|
|
|
||
|
|
type $$Props = AlertDialogPrimitive.CancelProps;
|
||
|
|
type $$Events = AlertDialogPrimitive.CancelEvents;
|
||
|
|
|
||
|
|
let className: $$Props["class"] = undefined;
|
||
|
|
export { className as class };
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<AlertDialogPrimitive.Cancel
|
||
|
|
class={cn(buttonVariants({ variant: "outline" }), "mt-2 sm:mt-0", className)}
|
||
|
|
{...$$restProps}
|
||
|
|
on:click
|
||
|
|
on:keydown
|
||
|
|
let:builder
|
||
|
|
>
|
||
|
|
<slot {builder} />
|
||
|
|
</AlertDialogPrimitive.Cancel>
|