chassis3_navbar
v1.0.3
Published
Navbar in React
Downloads
1
Readme
chassis3_navbar
Navbar in React
Install
npm install --save chassis3_navbar
or
yarn add chassis3_navbar
Usage
import React, {Component} from 'react'
import Navbar from 'chassis3_navbar'
export default class App extends Component {
render() {
return (
<div>
<Navbar firstName={'Ross'} />
</div>
)
}
}
Properties
| Property | Type | Required | Default value | Note |
| :----------------- | :--------------- | :------- | :----------------- | :------------------------------------------ |
| firstName
| string | optional | Mr. Y
| User's first name. |
| isLogined
| bool | optional | false
| User login information. |
| navTree
| array of objects | optional | []
| Navigation routes with required properties. |
| windowHeight
| number | optional | 800 | Window height. |
| windowWidth
| number | optional | 1200 | Window width. |
| goToRoute
| func | optional | () => {}
| Navigation handler. |
| onLogout
| func | optional | () => {}
| Logout button click handler. |
| t
| func | optional | (value) => value
| Translation function. |
| language
| string | optional | en
| Current website language. |
| onLanguageChange
| func | optional | () => {}
| Language change handler. |
License
MIT © screw123