@not-govuk/navigation-menu
TypeScript icon, indicating that this package has built-in type declarations

0.8.7 • Public • Published

NotGovUK - Navigation Menu

A component that provides users with a list of pages to choose from.

Using this package

First install the package into your project:

npm install -S @not-govuk/navigation-menu

Then use it in your code as follows:

import React, { createElement as h } from 'react';
import NavigationMenu from '@not-govuk/navigation-menu';

export const MyComponent = props => (
  <NavigationMenu items={[
    { href: '/', text: 'Inactive 1' },
    { href: '#main-content', text: 'Active' },
    { href: '/#main-content', text: 'Inactive 2' }
  ]} />
);

export default MyComponent;

Working on this package

Before working on this package you must install its dependencies using the following command:

pnpm install

Testing

npm test

Building

npm run build

Clean-up

npm run clean

Readme

Keywords

Package Sidebar

Install

npm i @not-govuk/navigation-menu

Weekly Downloads

374

Version

0.8.7

License

MIT

Unpacked Size

7.56 kB

Total Files

7

Last publish

Collaborators

  • daniel-ac-martin