A simple library allowing to create customizable, beautiful and responsive navbars.
Still in development
Run the following command:
npm install react-easy-navbar
import {
Navbar, NavlinkDropdown,
NavlinkDropdownElement,Navlink, NavlinksList, Logo
} from 'react-easy-navbar'
Mother component for initializing the Navbar
props:
textColor | hex, rgb(a) |
---|---|
backgroundColor | hex only |
Component that wrap the Navlinks
For a simple Navigation button. Should be inside
<NavlinksList>
props :
text | Text placeholder for the button |
---|
Component for a dropdown menu. Should be inside
<NavlinksList>
props :
text | Text placeholder for the button |
---|
Dropdown element, should be inside <NavlinkDropdown>
For text logo. Will be at right if placed before NavlinksList and vice-versa.
props :
text | Text placeholder for the button |
---|---|
color | CSS color (text color) |
fontSize | CSS font-size |
fontWeight | CSS font-weight |
<Navbar
backgroundColor="#3949ab"
textColor="white"
>
<NavlinksList>
<Navlink text="Sign-up" />
<Navlink text="Sign-in" />
<Navlink text="F.A.Q" />
<NavlinkDropdown text="Dropdown">
<NavlinkDropdownElement text="Dropdown 1" textColor="black"/>
<NavlinkDropdownElement text="Dropdown 2" textColor="black"/>
</NavlinkDropdown>
</NavlinksList>
<Logo text="React-easy-nav"/>
</Navbar>