Sidemenu
The SideMenu is a component for displaying a vertical menu with a collapsible menu.

Usage
npm i react-hartan
import { Sidemenu } from "react-hartan"
function App() {
return (
<>
<Sidemenu></Sidemenu>
</>
)
}
export default AppCustomization With Props
navList-> Accepts an array, where each element is an object of the structure:
{
logo: <>,
elem: <></>,
}logoName-> Accepts a string/node value, used inside sidemenu as heading.id-> The id prop is similar to the id attribute in HTML. It allows to provide overall component id.userNavbarStyle-> Accepts the class name(s) as string, custom styling prop for the full sidemenu container.userNavToggleStyle-> Accepts the class name(s) as string, custom styling prop for container for toggling sidemenu checkbox.userNavHeaderStyle-> Accepts the class name(s) as string, custom styling prop for container containing title and arrow.userNavTitleStyle-> Accepts the class name(s) as string, custom styling prop for the logo name.userNavContentStyle-> Accepts the class name(s) as string, custom styling prop for the container containing the sidemenu item list.userNavButtonStyle-> Accepts class name(s) as string, custom styling prop for the container containing each sidemenu item.
import { Sidemenu } from "react-hartan"
function App() {
return (
<>
<Sidemenu></Sidemenu>
</>
)
}
export default App// App.css
.bg-red{
padding: 2rem;
background-color: red;
}
.bg-pink{
background-color: pink;
}
// App.jsx
import { Sidemenu } from "react-hartan"
function App() {
return (
<>
<Sidemenu userNavbarStyle={"bg-red"} userNavContentStyle={"bg-pink"}></Sidemenu>
</>
)
}
export default AppComponent Code
This is the code for the Popup component.
Last updated