nextjs-navbar-active-link
TypeScript icon, indicating that this package has built-in type declarations

0.1.5-rc1 • Public • Published

Nextjs active navbar

Installation

Get the latest version by NPM:

$ npm install nextjs-navbar-active-link

Get the latest version by yarn:

$ yarn add nextjs-navbar-active-link

Usage

Components

Import Navbar and ActiveLink components:

import { Navbar, ActiveLink } from 'nextjs-navbar-active-link';

And render them like this:

<Navbar>
  <ActiveLink href="/">
    Home
  </ActiveLink>
  <ActiveLink>
    <ul>
      <li><a href="/test-page-1">Test page 1</a></li>
      <li><a href="/test-page-2">Test page 2</a></li>
    </ul>
  </ActiveLink>
</Navbar>

License

Nextjs active navbar are released under the MIT license. © kpwzto

Package Sidebar

Install

npm i nextjs-navbar-active-link

Weekly Downloads

1

Version

0.1.5-rc1

License

MIT

Unpacked Size

13.5 kB

Total Files

20

Last publish

Collaborators

  • khoinv.kpwzto