UIPackage
Menu

Framework

Change language

Boilerplate repo

Dropdown Menu

dropdown-menuui

Floating menu launched from a trigger button — for account switchers, row actions, editor menus, and any short list of commands. Supports labels, icons, separators, keyboard shortcuts, checkbox/radio items, and nested submenus. Built on reka-ui; ARIA + keyboard navigation handled.

Also available for React ->

Installation

$npx shadcn-vue@latest add https://uipkge.dev/r/vue/dropdown-menu.json
Named registry:npx shadcn-vue@latest add @uipkge/dropdown-menuInstalls to:app/components/ui/dropdown-menu/

Examples

Loading interactive previews…

Props

NameType / ValuesDefaultRequired
side
'bottom''left''right''top'
optional

Used by

Files installed (16)

  • app/components/ui/dropdown-menu/DropdownMenu.vue0.5 kB
    <script setup lang="ts">
    import type { DropdownMenuRootEmits, DropdownMenuRootProps } from 'reka-ui'
    import { DropdownMenuRoot, useForwardPropsEmits } from 'reka-ui'
    
    const props = defineProps<DropdownMenuRootProps>()
    const emits = defineEmits<DropdownMenuRootEmits>()
    
    const forwarded = useForwardPropsEmits(props, emits)
    </script>
    
    <template>
      <DropdownMenuRoot v-slot="slotProps" data-uipkge data-slot="dropdown-menu" v-bind="forwarded">
        <slot v-bind="slotProps" />
      </DropdownMenuRoot>
    </template>
    
  • app/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue1.5 kB
  • app/components/ui/dropdown-menu/DropdownMenuContent.vue1.1 kB
  • app/components/ui/dropdown-menu/dropdown-menu-content.variants.ts1.2 kB
  • app/components/ui/dropdown-menu/DropdownMenuGroup.vue0.3 kB
  • app/components/ui/dropdown-menu/DropdownMenuItem.vue1.6 kB
  • app/components/ui/dropdown-menu/DropdownMenuLabel.vue0.8 kB
  • app/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue0.5 kB
  • app/components/ui/dropdown-menu/DropdownMenuRadioItem.vue1.5 kB
  • app/components/ui/dropdown-menu/DropdownMenuSeparator.vue0.6 kB
  • app/components/ui/dropdown-menu/DropdownMenuShortcut.vue0.4 kB
  • app/components/ui/dropdown-menu/DropdownMenuSub.vue0.5 kB
  • app/components/ui/dropdown-menu/DropdownMenuSubContent.vue1.3 kB
  • app/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue1.4 kB
  • app/components/ui/dropdown-menu/DropdownMenuTrigger.vue0.4 kB
  • app/components/ui/dropdown-menu/index.ts1.3 kB

Raw manifest:https://uipkge.dev/r/vue/dropdown-menu.json