mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-04-18 01:21:19 +00:00
28 lines
636 B
Svelte
28 lines
636 B
Svelte
<script lang="ts">
|
|
import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
|
|
import {
|
|
buttonVariants,
|
|
type ButtonVariant,
|
|
type ButtonSize,
|
|
} from "$lib/components/ui/button/index.js";
|
|
import { cn } from "$lib/utils.js";
|
|
|
|
let {
|
|
ref = $bindable(null),
|
|
class: className,
|
|
variant = "outline",
|
|
size = "default",
|
|
...restProps
|
|
}: AlertDialogPrimitive.CancelProps & {
|
|
variant?: ButtonVariant;
|
|
size?: ButtonSize;
|
|
} = $props();
|
|
</script>
|
|
|
|
<AlertDialogPrimitive.Cancel
|
|
bind:ref
|
|
data-slot="alert-dialog-cancel"
|
|
class={cn(buttonVariants({ variant, size }), "cn-alert-dialog-cancel", className)}
|
|
{...restProps}
|
|
/>
|