Skip to content

Declarative side navigation components. Built with React & Pose.

Notifications You must be signed in to change notification settings

johnrjj/react-sidenav

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Sidenav

Built using React, Pose, and styled-components.

Usage

<SideNav open={true}>
  {/* 
      Declaratively add and remove SideNavPage children here. 
      Everything is automatically managed, including transitions and coordinated unmounting.
  */}
  <SideNavPage key={'key1'}>Content here!</SideNavPage>
  <SideNavPage key={'key2'}>More content here!</SideNavPage>
</SideNav>

Consumer is in full control of how they wish to manage the children. I.e. you can use a stack and push/pop to it (see App.js in the /src for an example).

Note: Only requirement is that each <SideNavPage> must have a unique key.

Releases

No releases published

Packages

No packages published