<script setup lang="ts">
import { DropdownMenuTrigger as ShadcnDropdownMenuTrigger } from '@/components/core/dropdown-menu';
import type { UiDropdownMenuTriggerProps } from './types';

defineOptions({
  name: 'UiDropdownMenuTrigger',
});

const props = withDefaults(defineProps<UiDropdownMenuTriggerProps>(), {
  ariaLabel: undefined,
  disabled: false,
  asChild: false,
});
</script>

<template>
  <ShadcnDropdownMenuTrigger
    :disabled="props.disabled"
    :as-child="props.asChild"
    :aria-label="props.ariaLabel"
  >
    <slot />
  </ShadcnDropdownMenuTrigger>
</template>
