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

Menu

Menu is a navigation component that provides a list of options for user selection. It supports various item types including normal items, sub-menus, dividers, and item groups with customizable icons and styles.

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

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

APIs

PropertyDescriptionTypeDefault
itemsMenu items to be displayedItemType[]-
variantStyle variant of the menu'filled' | 'outlined' | 'borderless''borderless'
compactWhether to use compact mode with smaller spacingbooleanfalse
shadowWhether to show a shadow effectbooleanfalse
iconPropsConfiguration for icons in menu itemsIconContentConfig-
selectableWhether menu items are selectableboolean-

ItemType

PropertyDescriptionType
keyUnique identifier for the itemKey
labelContent of the menu itemReactNode
titleTitle attribute of the itemstring
iconIcon of the menu itemReactNode | IconDefinition
dangerWhether the item has danger styleboolean
disabledWhether the item is disabledboolean
childrenSub-items for sub-menu or groupItemType[]
typeType of menu item'group' | 'divider'
dashedFor divider type, whether it's dashedboolean

Items

  • Navigation One
  • Navigation Two
  • Navigation Three - Submenu

Group Items

  • Group 1
    • Navigation One
    • Navigation Two
  • Group 2
    • Navigation One
    • Navigation Two