gseller-sidebar
v0.1.9
Published
Gseller sidebar
Downloads
14
Maintainers
Readme
Gseller Sidebar
Gseller Sidebar is a package designed within the monorepo framework, offering a set of mini-components for integration into the Gseller core.
Instalations
yarn add gseller-sidebar
or
npm install gseller-sidebar
Usage
- Make sure to include the SidebarProvider in your layout.tsx.
- The component requires three props: "onLogout," "sidebarOptions," and "src." These props, in order, serve the following purposes:
onLogout: a function to handle user logout from the system.
sidebarOptions: a list of options for your sidebar.
src: an image to be displayed at the top level of your sidebar.