A React Navbar/Sidebar combo component.
Navvy serves as a simple to use navbar/sidebar combo component. A fully featured navbar/sidebar is a common aspect of many dashboards and other websites; Navvy makes it easy to implement one on your own.
npm install navvy
yarn add navvy
import React from 'react'
import Navvy from 'navvy'
const App = () => {
return (
<Navvy
logo="D A S H B O A R D"
sections={[
{
heading: 'Navigation',
links: [
{
collapsible: true,
children: [
{
icon: 'Cube',
title: 'Child 1'
},
{
icon: 'Cubes',
title: 'Child 2'
}
],
icon: 'Dashboard',
title: 'Dashboard'
},
{
icon: 'Template',
title: 'Page layouts',
handler: () => console.log('LOL')
},
{ icon: 'Sidebar', title: 'Navigation' },
{ icon: 'Apps', title: 'Widget' }
]
},
{
heading: 'UI Element',
links: [
{ icon: 'Add', title: 'Basic' },
{ icon: 'Action', title: 'Advanced' },
{ icon: 'Ad', title: 'Extra' },
{ icon: 'ThreeD', title: 'Animations' },
{ icon: 'Cubes', title: 'Icons' }
]
},
{
heading: 'Forms',
links: [
{ icon: 'Document', title: 'Form' },
{ icon: 'FormAdd', title: 'Form Picker' },
{ icon: 'FormCheckmark', title: 'Form Select' },
{ icon: 'FormFolder', title: 'Form Masking' },
{ icon: 'Magic', title: 'Form Wizard' }
]
}
]}
>
{Inner Content}
</Navvy>
)
}
export default App
- Grommet - UI Framework
- React - UI Framework
- react-custom-scrollbars - Sidebar Scrolling
- Basic Skeleton.
- Ability to collapse/expand sidebar.
- Ability to make fullscreen.
- Ability to render collapsible links.
- Ability to render custom Logos.
- Dark/Light Modes.
- Ability to hook into Notifications.
- Ability to hook into Settings.
- Alex Lee - Developer
- Icon made by Nikita Golubev from www.flaticon.com and is licensed by CC 3.0 BY.