0.1.0 • Published 3 years ago

responsive-sticky-nav v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Responsive Sticky Nav

responsive-sticky-nav provides you with an elegant navbar that is fully responsive and also sticky! You can customize this with colors and styles of your choice.


Installation

$ npm i responsive-sticky-nav --save

Demo

Demo1 - sticky \ Demo2 - responsive

Usage

import Navbar from 'responsive-sticky-nav'

<Navbar
   logo="link-of-logo-image"
   color="black"
   drawerColor="rgba(0,0,0,0.6)"
   burgerColor="#fff"
   drawerHeight="100vh"
>
    <h4><a href="/home">Home</a></h4>
    <h4><a href="/about">About</a></h4>
    <h4><a href="/work">Work</a></h4>
    <h4><a href="/contact">Contact</a></h4>
</Navbar>

Props

PropsTypeDetails
logoString / ImageThis is the logo image at the left of your nav
colorStringColor of navbar - Can be name/hex/rgba/rgb
drawerColorStringColor of drawer - Can be name/hex/rgba/rgb
burgerColorStringColor of hamburger lines - Can be name/hex/rgba/rgb
drawerHeightStringHeight of drawer - Can be in any units

License

MIT