NavItem

NavItem: ComponentType<NavItemProps> = ...

The child element of a Nav component.

Please use this component combining with Nav, NavLink and NavMenu (if a sub menu is needed).

Example:

          
1
2
3
4
5
6
7
8
9
10
import { Dropdown, DropdownButton, DropdownMenu, DropdownItem } from 'jimu-ui';
import { Nav, NavItem, NavLink } from 'jimu-ui';
<Nav underline>
  <NavItem>
    <NavLink active>Home</NavLink>
  </NavItem>
  <NavItem>
    <NavLink>About</NavLink>
  </NavItem>
</Nav>

Props:

See NavItemProps 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.