Skip to main content

SidebarNav

The SidebarNav component is a navigation that supposed to be placed on the right of the main content.

This component is subject to change and be split up in a SideBar component that can host multiple different components and a vertical navigation.

Import

// Tree shakable import
import { SidebarNav, SidebarNavItem } from '@bojagi/pablo';
// Or direct import
import { SidebarNav, SidebarNavItem } from '@bojagi/pablo/SidebarNav';

Example

Live Editor
  <SidebarNav>
    <SidebarNavItem>Hello</SidebarNavItem>
    <SidebarNavItem selected>Goodbye</SidebarNavItem>
    <SidebarNavItem>Ob1-La-Di Ob-La-Da</SidebarNavItem>
  </SidebarNav>
Result
Loading...

Props

SidebarNav

NameTypeDefault ValueRequiredDescription

SidebarNavItem

NameTypeDefault ValueRequiredDescription

Box props

SidebarNav

NameTypeDefault ValueRequiredDescription

SidebarNavItem

NameTypeDefault ValueRequiredDescription