lbt-navigation
v1.2.10
Published
This library implements navigation for Leobit internal services.
Downloads
39
Keywords
Readme
lbt-navigation
This library implements navigation for Leobit internal services.
Install
npm install --save lbt-navigation
Usage
import React, { Component } from 'react'
import LbtNav from 'lbt-navigation'
import 'lbt-navigation/dist/index.css'
const tabs = [
{
id: 'chart',
lable: 'Chart',
route: '/chart',
command: () => navigate('/chart')
},
{
id: 'statistics',
lable: 'Statistics',
route: '/statistics',
command: () => navigate('/statistics')
}
]
class Example extends Component {
render() {
return (
<LbtNav
isAuthenticated={boolean}
title='Vacation'
user={{
name: 'James Smith',
picture: 'url'
}}
redirectPathAfterSignIn='/'
redirectPathAfterSignOut='/'
toggleSignIn={() => {}}
toggleSignOut={() => {}}
sidebarLinksEndpoint='url'
tabs={tabs}
themeToggler
onThemeChange={() => {}}
>
<div>Place your content here!</div>
</LbtNav>
)
}
}
License
For Leobit's developers
P.S. To get information on how to run the project, please refer to the README.md located in the "example" folder.