mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-03-27 09:46:36 +00:00
22 lines
565 B
Svelte
22 lines
565 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.ActionProps;
|
|
type $$Events = AlertDialogPrimitive.ActionEvents;
|
|
|
|
let className: $$Props['class'] = undefined;
|
|
export { className as class };
|
|
</script>
|
|
|
|
<AlertDialogPrimitive.Action
|
|
class={cn(buttonVariants(), className)}
|
|
{...$$restProps}
|
|
on:click
|
|
on:keydown
|
|
let:builder
|
|
>
|
|
<slot {builder} />
|
|
</AlertDialogPrimitive.Action>
|