New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-navbar-menu

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-navbar-menu

A mobile friendly menu bar/ navbar menu. Easy to use and modify

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

react-navbar-menu

Powered by BigYusufff. Check some of my awesome projects out https://yusuflateef.vercel.app/

NPM version dumi build status Coverage Status npm download bundle size

Install

react-navbar-menu

Usage

With linear-gradient

import React from 'react'
import { Navbar } from 'react-navbar-menu'

const Header = () => {
    return (
        <div>
            <Navbar IconColor={'yellow'} MenuNumber={4} Center={true} Position={'bottom'}
                url1={'#home'}icon1={"bx bx-home-alt"} 
                url2={'#aboutme'}icon2={"bx bx-book-alt"} 
                url3={'/contact'}icon3={"bx bx-user"} 
                url4={'#skills'}icon4={"bx bx-pin"} 
                backgroundColor={"#151c28"} degree={`to bottom`} 
                gradcolor1={'#a595e9'} gradcolor2={'#a595e933'}/>
   
        </div>
    )
}

export default Header

Without linear-gradient (with ActiveColor)

import React from 'react'
import { Navbar } from 'react-navbar-menu'

const Header = () => {
    return (
        <div>
            <Navbar IconColor={'yellow'} MenuNumber={4} Position={'bottom'}
                url1={'#home'}icon1={"bx bx-home-alt"} Center={true} 
                url2={'#aboutme'}icon2={"bx bx-book-alt"} 
                url3={'/contact'}icon3={"bx bx-user"} 
                url4={'#skills'}icon4={"bx bx-pin"} 
                backgroundColor={"#151c28"} activeColor={'#a595e9'} />
   
        </div>
    )
}

export default Header

Compatibility

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
Electron
Electron
IE11, Edgelast 2 versionslast 2 versionslast 2 versionslast 2 versions

General Props

nametypedefaultdescription
PositionString"Top"Specify the position of the component. "Top" or "top" or "Bottom"
CenterBooleanfalseChoose to center the compenent true or false
borderRadiusNumber64{Optional} Specify the border-radius
WidthNumber{Optional} Specify the width of component
backgroundColorString""Specify the background color for the menu/ navbar menu e.g. "blue","#a595e9"

Menu Items Props

nametypedefaultdescription
MenuNumberNumberThe MenuNumber denotes 'how many menu-items you want. Although Maximum is 5 and minimum is 1'
FontNumber{optional}Specify the font-size. As the icons increase and decrease, Height will adjust automatically but Width will need to be adjusted maually
IconColorString""Specify the color for the menu items/ navbar menu items e.g. "blue","#a595e9"
activeColorString""Specify the background color for the active menu items/ navbar menu items e.g. "blue","#a595e9"
activeIconColorString""Specify the color for the menu item/ navbar menu item e.g. "blue","#a595e9"
degreeString""{Optional} This is part of linear-gradient(degree, gradcolor1,gradcolor2), this will inturn overwrite activeColor and become the active background color. Specify the direction of background color for the active menu item/ navbar menu items e.g. "to left", "to right", "to bottom left" etc.
gradcolor1String""{Optional} This is part of linear-gradient(degree, gradcolor1,gradcolor2), this will inturn overwrite activeColor and become the active background color. Specify the direction of background color for the active menu item/ navbar menu items e.g. "blue" etc.
gradcolor2String""{Optional} This is part of linear-gradient(degree, gradcolor1,gradcolor2), this will inturn overwrite activeColor and become the active background color. Specify the direction of background color for the active menu item/ navbar menu items e.g. "green" etc.
icon1, icon2... icon5String""Specify the name of the icon for each specific icon number(icon1, icon2) for the menu item/ navbar menu items. e.g. "bx bx-home", "fa fa-house" etc.
url1, url2... url5String""Specify the name of the url for each specific url number(url1, url2) for the menu item/ navbar menu items. e.g. "/", "#contact" etc.

Installation

  npm install react-navbar-menu

Live Examples

https://ri4w0d.csb.app/

More Info

https://yusuflateefblog.vercel.app/post/react-navbar-menu

Code Installation

  npm install

License

react-navbar-menu is released under the MIT license.

Keywords

menu library

FAQs

Package last updated on 05 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts