Skip to content
This repository was archived by the owner on May 19, 2020. It is now read-only.

Files

Latest commit

 

History

History
29 lines (19 loc) · 747 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 747 Bytes

Linode Navbar

Basic navbar intended to help maintain consistent styles across Linode websites.

Usage

The navbar is a React component, bundled into a module so that you don't have to include React in your project or HTML.

npm install @kobonaut/linode-navbar

The navbar module exposes a single function, showNavBar().

In your HTML:

<script>navbar.showNavBar(document.getElementById('navbar-root'), 'name');</script>
<body>
  <div id="navbar-root"></div>
</body>

Development

In order to modify the component(s) you'll need to do the following:

  • git clone https://github.com/Jskobos/linode-navbar
  • git clone https://github.com/linode/linode-hugo-theme repos/linode-hugo-theme
  • npm install
  • npm run dev