1.0.2 • Published 5 years ago

react-luxbar v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

react-luxbar

NPM JavaScript Style Guide

Description

A Luxbar implementation for React.js

Installation

yarn add react-luxbar -or- npm install --save react-luxbar

Demo

Demo

API

Navbar

PropTypeDefaultOptionsDescription
backgroundColorString:ColorNavbar background color
classNameStringCustom classNames for Navbar
colorString:ColorwhiteNavbar color text
hoverColorString:ColorwhiteNavbar items hover color
onToggleFunction(status)Callback for navbar toggles
positionstringfixed'fixed', 'fixedBottom', 'static'Navbar position
rtlBooltruetrue, falseOptions right to left

Navbar.Option

PropTypeDefaultOptionsDescription
classNameStringCustom classNames for Navbar.Option

Navbar.Logo

PropTypeDefaultOptionsDescription
classNameStringCustom classNames for Navbar.Option

Usage

import React, { Component } from 'react'
import Navbar from 'react-luxbar'

class Example extends Component {
  render () {
    return (
         <Navbar>
          	<Navbar.Logo>
            	<a href="index.html">
              	<span>Brand</span>
            	</a>
          	</Navbar.Logo>
          	<Navbar.Option>
            	<a href="https://google.com">Google</a>
          	</Navbar.Option>
        </Navbar>
    )
  }
}

Credits

Luxbar

License

MIT © bernagl