Giter VIP home page Giter VIP logo

react-navbar's Introduction

Dynamic ReactJS Navigation Bar

Bootstrap Navigation bar rebuilt with React components. Written in ECMAScript 6 (ES6). No external stylesheets! This navigation bar is built with Radium inline styling.

Desktop View

navbar-desktop

Mobile View

navbar-responsive

Tree Structure

navbartree

Components

const dropdownItems = [
    {href: '#', name: 'Overview'},
    {href: '#', name: 'Setup'},
    {href: '#', name: 'Usage'},
];

const navbar = (
    <Navbar>
        <NavbarHeader href="homepage.html" name="Website Name"/>
        <NavbarItems>
            <Item link="about.html" title="About" />
            <Item link="contact.html" title="Contact" />
            <Item link="services.html" title="Services" />
            <NavbarDropdown name="Features">
                  <DropdownMenu menuItems={dropdownItems}/>
            </NavbarDropdown>
        </NavbarItems>
    </Navbar>
);

React.render(navbar, document.getElementById('navbar'));

Install

Clone the repository. Then install dependencies,

npm install

Run the webpack dev server

npm start

Go to http://localhost:8080/ on your favorite browser to view the Navigation bar.

react-navbar's People

Contributors

cybersiddhu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-navbar's Issues

Components for navbar

NavbarItem

render() {
         <div>
             <ul className="nav navbar-nav">
                        {
                            this.props.children.map(child => {
                                   return  <li>{child}</li>
                            });
                        }
             </ul>
          </div>
}

Usage

<NavbarItem>
  <Item/>
  <Item/>
   ........
</NavbarItem>
<NavbarItem>
  <Item {...this.props} />
  <Item {...this.props}/>
   ........
</NavbarItem>

Add live demo link

It is very useful to be able to play around with React components live. Please provide a link to do so.

Npm release

Hi! I'd love to use this project in my app. Can you please issue an Npm release for the project?

Multiple Navbars

  1. Create multiple navbars with different styles
    1. change alignment
    2. change color
    3. change font etc.

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.