NavLink

NavLink: ComponentType<NavLinkProps & RefAttributes<HTMLButtonElement> & > = ...

NavLink component is usually used to provide navigation capability, when combining with NavItem component.

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

Example:

         
1
2
3
4
5
6
7
8
9
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.