DropdownMenu
Displays a compact menu anchored to a trigger. Use it to group related actions without occupying persistent page space.
React
Figma
React examples
Default
import { Button, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger, } from "@kela-systems/ui-components"; export default function DropdownMenuDefault() { return ( <DropdownMenu> <DropdownMenuTrigger render={<Button variant="outline" />}>Camera 4</DropdownMenuTrigger> <DropdownMenuContent align="start"> <DropdownMenuGroup> <DropdownMenuLabel>Camera 4, north gate</DropdownMenuLabel> <DropdownMenuItem> Open feed <DropdownMenuShortcut>⌘O</DropdownMenuShortcut> </DropdownMenuItem> <DropdownMenuItem>Export clip</DropdownMenuItem> <DropdownMenuItem>Rename</DropdownMenuItem> </DropdownMenuGroup> <DropdownMenuSeparator /> <DropdownMenuItem variant="destructive">Remove camera</DropdownMenuItem> </DropdownMenuContent> </DropdownMenu> ); }
Props
DropdownMenu
No props of its own. It also takes the props of Base UI's menu.
DropdownMenuPortal
No props of its own. It also takes the props of Base UI's menu.
DropdownMenuTrigger
No props of its own. It also takes the props of Base UI's menu.
DropdownMenuContent
No props of its own. It also takes the props of Base UI's menu.
DropdownMenuGroup
No props of its own. It also takes the props of Base UI's menu.
DropdownMenuLabel
| Name | Default | Description |
|---|---|---|
insetboolean |
It also takes the attributes of the HTML element it renders.
DropdownMenuItem
| Name | Default | Description |
|---|---|---|
variant"default" | "destructive" | "default" | |
insetboolean |
It also takes the props of Base UI's menu.
DropdownMenuCheckboxItem
| Name | Default | Description |
|---|---|---|
insetboolean |
It also takes the props of Base UI's menu.
DropdownMenuRadioGroup
No props of its own. It also takes the props of Base UI's menu.
DropdownMenuRadioItem
| Name | Default | Description |
|---|---|---|
insetboolean |
It also takes the props of Base UI's menu.
DropdownMenuSeparator
No props of its own. It also takes the props of Base UI's menu.
DropdownMenuShortcut
No props of its own. It also takes the attributes of the HTML element it renders.
DropdownMenuSub
No props of its own. It also takes the props of Base UI's menu.
DropdownMenuSubTrigger
| Name | Default | Description |
|---|---|---|
insetboolean |
It also takes the props of Base UI's menu.
DropdownMenuSubContent
No props of its own. It also takes the props of Base UI's menu.