LobeChatLobeHub
UI
Components
Chat
Mobile
Awesome
Brand
Mdx
Icons
Color
Changelog
Ctrl
K
General
ActionIcon
ActionIconGroup
Block
Button
Icon
Data Display
Avatar
Collapse
FileTypeIcon
FluentEmoji
GuideCard
Highlighter
Hotkey
Image
List
Markdown
MaterialFileTypeIcon
Mermaid
Segmented
Snippet
SortableList
Tag
Tooltip
Video
Data Entry
AutoComplete
CodeEditor
ColorSwatches
CopyButton
DatePicker
EditableText
EmojiPicker
Form
FormModal
HotkeyInput
ImageSelect
Input
SearchBar
Select
SliderWithInput
ThemeSwitch
Feedback
Alert
Drawer
Modal
Layout
DraggablePanel
Footer
Grid
Header
Layout
MaskShadow
ScrollShadow
Navigation
Burger
Dropdown
Menu
SideNav
Tabs
Toc
Theme
ConfigProvider
FontLoader
ThemeProvider

Dropdown

Dropdown displays a list of options that appear when users click or hover over a trigger element. It's commonly used for showing context menus, additional actions, or navigation options.

import { Dropdown } from '@lobehub/ui';
NPM
UNPKG
BundlePhobia
PackagePhobia
Anvaka Graph
Source
Edit
Previous
Burger
Next
Menu

Resources

Lobe UI-AIGC Components
Lobe Icon-AI / LLM Icon Collection
Lobe Charts-Modern Charts
Lobe TTS-TTS / STT Library

Community

Report Bug
Request Feature

Help

GitHub
Changelog

More Products

🤯 Lobe Chat-AI / LLM Chat Framework
🧸 Lobe Vidol-Virtual Idols for EveryOne
🅰️ Lobe Theme-Stable Diffusion Extension
🌐 Lobe i18n-AI i18next CLI
Copyright © 2022-2025
Made with 🤯 by LobeHub
LobeHub

default

ContextMenu

APIs

Dropdown

PropertyDescriptionTypeDefault
menuConfiguration for dropdown menuMenuProps-
iconPropsGlobal configuration for icons in dropdownIconContentConfig-
childrenTrigger elementReactNode-
triggerEvents that trigger dropdown('click' | 'hover' | 'contextMenu')[]['hover']
placementPosition of dropdown menu'bottomLeft' | 'bottomCenter' | 'bottomRight' | 'topLeft' | 'topCenter' | 'topRight''bottomLeft'

Additionally, Dropdown inherits all properties from Ant Design's Dropdown component except for the menu property, which has been enhanced.

DropdownMenuItemType

Menu items for dropdown are the same as those used for the Menu component. See Menu for more details about item configuration.

PropertyDescriptionTypeDefault
keyUnique identifier for menu itemstring-
labelDisplay content of menu itemReactNode-
iconIcon for menu itemIconProps['icon']-
dangerWhether menu item is dangerousbooleanfalse
disabledWhether menu item is disabledbooleanfalse
RightClick