responsive-navbar-react

1.2.1 • Public • Published

responsive-navbar-react

NPM JavaScript Style Guide

Install

npm install --save responsive-navbar-react

Example

Usage

import React from 'react'

import { Navbar } from 'responsive-navbar-react'
import 'responsive-navbar-react/dist/index.css'

const Home = () => {
  const props = {
    items: [
      {
        text: 'Home',
        link: '/'
      },
      {
        text: 'Doc',
        link: '#docs'
      },
      {
        text: 'Custom',
        link: '#custom-bar'
      },
      {
        text: 'Contact',
        link: '#contact'
      }
    ],
    logo: {
      text: 'Responsive Navbar React'
    },
    style: {
      barStyles: {
        background: '#444'
      },
      sidebarStyles: {
        background: '#222',
        buttonColor: 'white'
      }
    }
  }
  return <Navbar {...props} />
}

More Documentation is at : https://bdbose.github.io/responsive-navbar-react

License

MIT © bdbose

Package Sidebar

Install

npm i responsive-navbar-react

Weekly Downloads

52

Version

1.2.1

License

MIT

Unpacked Size

36.7 kB

Total Files

8

Last publish

Collaborators

  • bdbose