To switch to a light sidebar, add
data-menu-color="light" to the
<html> tag in your layout.
You can apply this dynamically using the
useLayoutContext with
changeSideNavColor('light').
Preview
To switch to a gradient sidebar, add
data-menu-color="gradient" to the
<html> tag in your layout.
You can apply this dynamically using the
useLayoutContext with
changeSideNavColor('gradient').
Preview
To switch to a gray sidebar, add
data-menu-color="gray" to the
<html> tag in your layout.
You can apply this dynamically using the
useLayoutContext with
changeSideNavColor('gray').
Preview
To switch to a image sidebar, add
data-menu-color="image" to the
<html> tag in your layout.
You can apply this dynamically using the
useLayoutContext with
changeSideNavColor('image').
Preview
To switch to a compact sidebar, add
data-sidenav-size="compact" to the
<html> tag in your layout.
You can apply this dynamically using the
useLayoutContext with
changeSideNavSize('compact').
Preview
To switch to a sidebar with icon, add
data-sidenav-size="condensed" to the
<html> tag in your layout.
You can apply this dynamically using the
useLayoutContext with
changeSideNavSize('condensed').
Preview
To switch to a on hover active sidebar, add
data-sidenav-size="on-hover-active" to the
<html> tag in your layout.
You can apply this dynamically using the
useLayoutContext with
changeSideNavSize('on-hover-active').
Preview
To switch to a offcanvas sidebar, add
data-sidenav-size="offcanvas" to the
<html> tag in your layout.
You can apply this dynamically using the
useLayoutContext with
changeSideNavSize('offcanvas').
Preview
If you want to display a line with each menu item, add the class
"sidebar-no-icons sidebar-with-line" to the
<html> tag. You can apply this dynamically using toggleAttribute('class', 'sidebar-no-icons sidebar-with-line').
Preview
If you want to display a line with each menu item, add the class
"sidebar-with-line" to the
<html> tag. You can apply this dynamically using toggleAttribute('class', 'sidebar-with-line').
Preview