Some checks failed
Test and deploy staging / staging (push) Failing after 5m29s
28 lines
613 B
Svelte
28 lines
613 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 = 'default',
|
|
size = 'default',
|
|
...restProps
|
|
}: AlertDialogPrimitive.ActionProps & {
|
|
variant?: ButtonVariant;
|
|
size?: ButtonSize;
|
|
} = $props();
|
|
</script>
|
|
|
|
<AlertDialogPrimitive.Action
|
|
bind:ref
|
|
data-slot="alert-dialog-action"
|
|
class={cn(buttonVariants({ variant, size }), '', className)}
|
|
{...restProps}
|
|
/>
|