mirror of https://github.com/TZGyn/shortener
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
539 B
Svelte
21 lines
539 B
Svelte
<script lang="ts">
|
|
import { AlertDialog as AlertDialogPrimitive } from 'bits-ui'
|
|
import { buttonVariants } from '$lib/components/ui/button'
|
|
import { cn } from '$lib/utils'
|
|
|
|
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>
|