Skip to content

Menu

A versatile menu for navigation.

Horizontal

By setting mode to horizontal, you can use the horizontal menu.

...
Navigation 1
Navigation 2
Navigation 3
Navigation 4

Sider

Side menu is used in conjunction with the layout component.

Navigation 1
Navigation 2
Navigation 3
Navigation 4

Effects

Menu provide five different themes: outset、inset、bordered、outlined and flat. Using effect to change, default is outset.

Navigation 1
Navigation 2
Navigation 3
Navigation 4
...
Navigation 1
Navigation 2
Navigation 3
Navigation 4

Collapsed

Use collapsed to specify the menu to collapse.

Navigation 1
Navigation 2
Navigation 3
Navigation 4

Responsive Collapsed

set breakpoint for responsive contraction.

Navigation 1
Navigation 2
Navigation 3
Navigation 4

Multiple sub-items can be embedded in the menu, and the items that are opened by default can be set through openKeys.

Navigation 1
Navigation 2
Navigation 3
Navigation 4

Group Menu

using tu-menu-group to group.

Navigation 1
Navigation 2
Navigation 3
Navigation 4

Floating Menu

Specify mode as pop to use floating menu.

Navigation 1
Navigation 2
Navigation 3
Navigation 4

Floating Button Menu

By setting mode to popButton, you can use a button group style floating menu.

NameDescriptionTypeDefault
themeMenu themeStringlight
modeThe mode of menuStringvertical
effectEffect of menuStringoutset
level-indentIndentation between levelsNumber-
auto-openExpand all multi-level menus by defaultBooleanfalse
collapsedWhether to collapse the menuBoolean-
default-collapsedWhether to collapse the menu by defaultBooleanfalse
collapsed-widthCollapse menu widthNumber-
accordionTurn on the accordion effectBooleanfalse
auto-scroll-into-viewWhether to automatically scroll the selected item to the visible areaBooleanfalse
show-collapse-buttonWhether built-in folding buttonBooleanfalse
selected-keysThe selected menu item key arrayArray-
default-selected-keysThe key array of the menu items selected by defaultArray[]
open-keysExpanded submenu key arrayArray-
default-open-keysThe default expanded submenu key arrayArray[]
scroll-configScroll to the configuration items in the visible areaObject-
trigger-propsAccept all Props of Trigger in pop-up modeObject-
tooltip-propsAccept all Props of ToolTip in pop-up modeObject-
auto-open-selectedExpand the selected menus by defaultBooleanfalse
breakpointResponsive breakpointsString-
popup-max-heightThe maximum height of popoverBooleanNumbertrue
NameDescriptionType
collapseTriggered when the collapsed state changesFunction
menu-item-clickTriggered when the menu item is clickedFunction
sub-menu-clickTriggered when the submenu is clickedFunction
NameDescription
collapse-iconCollapse icon
expand-icon-rightIcon expand right
expand-icon-downIcon expand down
NameDescriptionTypeDefault
titleThe title of the submenuString-
selectableIn the pop-up mode, whether the multi-level menu header is also used as a menu item to support the state such as click to selectBooleanfalse
popupWhether to force the use of pop-up mode, level indicates the level of the current submenuBooleanFunctionfalse
popup-max-heightThe maximum height of popoverBooleanNumbertrue
NameDescription
titleTitle
expand-icon-rightIcon expand right
expand-icon-downIcon expand down
iconThe icon of menu item
NameDescriptionTypeDefault
titleThe title of the menu groupString-
NameDescription
titleTitle
NameDescriptionTypeDefault
disabledWhether to disableBooleanfalse
NameDescription
iconThe icon of menu item