shadcn-vue/packages/cli/test/fixtures/nuxt/components/ui/alert-dialog/AlertDialogAction.vue
2023-09-19 00:30:11 +08:00

14 lines
399 B
Vue

<script setup lang="ts">
import { AlertDialogAction, type AlertDialogActionProps } from 'radix-vue'
import { cn } from '@/lib/utils'
import { buttonVariants } from '@/components/ui/button'
const props = defineProps<AlertDialogActionProps>()
</script>
<template>
<AlertDialogAction v-bind="props" :class="cn(buttonVariants(), $attrs.class ?? '')">
<slot />
</AlertDialogAction>
</template>