Skip to content

DropdownItem

A single clickable menu item for use inside DropdownMenu. Automatically closes the menu on click. Supports an optional description and a leading element (icon or emoji).

Basic usage

Tailwind v4
vue
<DropdownMenu>
  <template #trigger>
    <Button variant="secondary">Menu</Button>
  </template>
  <DropdownItem>View details</DropdownItem>
  <DropdownItem>Edit record</DropdownItem>
  <DropdownItem disabled>Archive (disabled)</DropdownItem>
</DropdownMenu>

With description

Tailwind v4
vue
<DropdownItem description="Open the full record">View details</DropdownItem>

With leading element

Tailwind v4
vue
<DropdownItem elem-before="📂">Open</DropdownItem>
<DropdownItem elem-before="💾">Save</DropdownItem>

Props

PropTypeDefaultDescription
disabledbooleanfalsePrevents click and dims the item
descriptionstringSecondary text shown below the label
elemBeforestringText/emoji rendered before the label

Emits

EventPayloadDescription
clickFired when the item is clicked (not fired when disabled)

Slots

SlotDescription
defaultItem label text

Private — Jetpack Labs internal use only