Dropdown Menu
A button-triggered menu that presents a list of actions or functions to the user.
API Reference
DropdownMenuRoot
Contains all the parts of a dropdown menu.
DropdownMenuTrigger
Wraps the control that will open the dropdown menu. Usually used with Button
:
<template>
<DropdownMenuRoot>
<DropdownMenuTrigger as-child>
<Button>Show dropdown menu</Button>
</DropdownMenuTrigger>
<DropdownMenuContent>...</DropdownMenuContent>
</DropdownMenuRoot>
</template>
DropdownMenuContent
The component that pops out when the dropdown menu is open.
DropdownMenuItem
The component that contains the dropdown menu items.