NavMenu

NavMenu: ComponentType<NavMenuProps> = ...

Add this component to the NavItem component to show a sub menu.

Please use this component combining with NavItem, NavLink and NavMenu.

Example:

                 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { Nav, NavItem, NavLink } from 'jimu-ui';
<Nav underline>
  <NavItem>
    <NavLink caret active>Home</NavLink>
    <NavMenu>
      <NavItem>
        <NavLink>Option 1</NavLink>
      </NavItem>
      <NavItem>
        <NavLink>Option 2</NavLink>
      </NavItem>
    </NavMenu>
  </NavItem>
  <NavItem>
    <NavLink>About</NavLink>
  </NavItem>
</Nav>

Props:

See NavMenuProps for more details.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.