Git Product home page Git Product logo

navbar's Introduction

react-responsive-animate-navbar (Example)

Buy Me Acoffee

just a simple, flexible & completely customisable responsive navigation bar component.

NPM JavaScript Style Guide

Desktop Demo:

Demo

Responsive Demo:

Demo

Install

npm install --save react-responsive-animate-navbar

Usage

import React from "react";
import ReactNavbar from "react-responsive-animate-navbar";
import {
  HomeComponent,
  ArticlesComponent,
  AboutComponent,
  ContactComponent,
} from "./components";

class Example extends Component {
  render() {
    return (
      <ReactNavbar
        color="rgb(25, 25, 25)"
        logo="https://svgshare.com/i/KHh.svg"
        menu={[
          { name: "HOME", to: "/", component: HomeComponent },
          { name: "ARTICLES", to: "/articles", component: ArticlesComponent },
          { name: "ABOUT ME", to: "/about", component: AboutComponent },
          { name: "CONTACT", to: "/contact", component: ContactComponent },
        ]}
        social={[
          {
            name: "Linkedin",
            url: "https://www.linkedin.com/in/nazeh-taha/",
            icon: ["fab", "linkedin-in"],
          },
          {
            name: "Facebook",
            url: "https://www.facebook.com/nazeh200/",
            icon: ["fab", "facebook-f"],
          },
          {
            name: "Instagram",
            url: "https://www.instagram.com/nazeh_taha/",
            icon: ["fab", "instagram"],
          },
          {
            name: "Twitter",
            url: "http://nazehtaha.herokuapp.com/",
            icon: ["fab", "twitter"],
          },
        ]}
      />
    );
  }
}

Props

Property Type Default Description
color string "rgb(25, 25, 25)" The Background of the navbar
logo string "https://svgshare.com/i/KHh.svg" the SVG logo url.
menu array like the example the route url.
social array like the example the icons for social links.

License

MIT © Nazeh-Taha

navbar's People

Contributors

nazeh-taha avatar dependabot[bot] avatar mauzamoram avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.