Sidenav
React Bootstrap 5 Sidenav component
The side navigation component provides an easy way to navigate through your website. Its appearance & behaviour are easily adjustable properties - additional functionality.
Note: Read the API tab to find all available options and advanced customization
Basic example
In the basic version, the side navigation will appear over your website's content after clicking on a toggler.
Note: Use open
property to toggle navigation. Use the getOpenState
property function to synchronize inner and outter open state.
import React, { useState } from 'react';
import {
MDBSideNav,
MDBSideNavMenu,
MDBSideNavItem,
MDBSideNavLink,
MDBSideNavCollapse,
MDBBtn,
MDBIcon
} from 'mdb-react-ui-kit';
export default function App() {
const [basicOpen, setBasicOpen] = useState(true);
const [basicCollapse1, setBasicCollapse1] = useState(true);
const [basicCollapse2, setBasicCollapse2] = useState(false);
return (
<>
<MDBSideNav open={basicOpen} absolute getOpenState={(e: any) => setBasicOpen(e)}>
<MDBSideNavMenu>
<MDBSideNavItem>
<MDBSideNavLink>
<MDBIcon far icon='smile' className='fa-fw me-3' />
Link 1
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink icon='angle-down' shouldBeExpanded={basicCollapse1} onClick={() => setBasicCollapse1(!basicCollapse1)}>
<MDBIcon fas icon='grin' className='fa-fw me-3' />
Category 1
</MDBSideNavLink>
<MDBSideNavCollapse open={basicCollapse1}>
<MDBSideNavLink>Link 2</MDBSideNavLink>
<MDBSideNavLink>Link 3</MDBSideNavLink>
</MDBSideNavCollapse>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink icon='angle-down' shouldBeExpanded={basicCollapse2} onClick={() => setBasicCollapse2(!basicCollapse2)}>
<MDBIcon fas icon='grin' className='fa-fw me-3' />
Category 2
</MDBSideNavLink>
<MDBSideNavCollapse open={basicCollapse2}>
<MDBSideNavLink>Link 4</MDBSideNavLink>
<MDBSideNavLink>Link 5</MDBSideNavLink>
</MDBSideNavCollapse>
</MDBSideNavItem>
</MDBSideNavMenu>
</MDBSideNav>
<div style={{ padding: '20px' }} className='text-center'>
<MDBBtn onClick={() => setBasicOpen(!basicOpen)}>
<MDBIcon fas icon='bars' />
</MDBBtn>
</div>
</>
);
}
Inner scroll
Use <MDBScrollbar>
instead of <MDBSideNavMenu>
component to create a scrollable menu.
Note: For customization purposes - you have to calculate the height on your own.
import React, { useState } from 'react';
import {
MDBSideNav,
MDBScrollbar,
MDBSideNavItem,
MDBSideNavLink,
MDBBtn,
MDBIcon
} from 'mdb-react-ui-kit';
export default function App() {
const [innerOpen, setInnerOpen] = useState(true);
return (
<>
<MDBSideNav open={innerOpen} absolute getOpenState={(e: any) => setInnerOpen(e)}>
<div className='text-center'>
<h3 className='py-4'>Examples</h3>
<hr className='m-0' />
</div>
<MDBScrollbar sidenav tag='ul' suppressScrollX style={{ height: '260px' }}>
<MDBSideNavItem>
<MDBSideNavLink>
<MDBIcon far icon='smile' className='fa-fw me-3' />
<span className='sidenav-non-slim'>Link 1</span>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink>
<MDBIcon far icon='smile' className='fa-fw me-3' />
<span className='sidenav-non-slim'>Link 2</span>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink>
<MDBIcon far icon='smile' className='fa-fw me-3' />
<span className='sidenav-non-slim'>Link 3</span>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink>
<MDBIcon far icon='smile' className='fa-fw me-3' />
<span className='sidenav-non-slim'>Link 4</span>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink>
<MDBIcon far icon='smile' className='fa-fw me-3' />
<span className='sidenav-non-slim'>Link 5</span>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink>
<MDBIcon far icon='smile' className='fa-fw me-3' />
<span className='sidenav-non-slim'>Link 6</span>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink>
<MDBIcon far icon='smile' className='fa-fw me-3' />
<span className='sidenav-non-slim'>Link 7</span>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink>
<MDBIcon far icon='smile' className='fa-fw me-3' />
<span className='sidenav-non-slim'>Link 8</span>
</MDBSideNavLink>
</MDBSideNavItem>
</MDBScrollbar>
<div className='text-center' style={{ minHeight: '3rem' }}>
<hr className='mt-0 mb-2' />
<small>mdbootstrap.com</small>
</div>
</MDBSideNav>
<div style={{ padding: '20px' }} className='text-center'>
<MDBBtn onClick={() => setInnerOpen(!innerOpen)}>
<MDBIcon fas icon='bars' />
</MDBBtn>
</div>
</>
);
}
Full-screen examples
The following examples various settings of the side navigation component in a full-screen mode.
2. Side navigation with a mode transition
Resize the window to change the mode from side
to over
.
import React, { useState, useRef, useEffect, useCallback } from 'react';
import {
MDBSideNav,
MDBSideNavMenu,
MDBSideNavItem,
MDBSideNavLink,
MDBSideNavCollapse,
MDBIcon,
} from 'mdb-react-ui-kit';
export default function App() {
const [basicCollapse1, setBasicCollapse1] = useState(true);
const [basicCollapse2, setBasicCollapse2] = useState(true);
const [mode, setMode] = useState('side');
const contentRef = useRef(null);
const handleResize = useCallback(() => {
if (window.matchMedia('(min-width: 900px)')) {
return setMode('side');
}
return setMode('push');
}, []);
useEffect(() => {
window.addEventListener('resize', handleResize);
return () => {
window.removeEventListener('resize', handleResize);
};
}, [handleResize]);
return (
<>
<MDBSideNav backdrop={false} mode={mode} color='dark' closeOnEsc={false}>
<div className='mt-4'>
<div id='header-content' className='ps-3'>
<img
src='https://mdbootstrap.com/img/Photos/Avatars/img%20(23).webp'
alt='avatar'
className='rounded-circle img-fluid mb-3'
style={{ maxWidth: '50px' }}
/>
<h4>
<span style={{ whiteSpace: 'nowrap' }}>Ann Smith</span>
</h4>
<p>ann_s@mdbootstrap.com</p>
</div>
<hr className='mb-0' />
</div>
<MDBSideNavMenu>
<MDBSideNavItem>
<MDBSideNavLink href='/'>
<MDBIcon icon='envelope' className='fas fa-fw me-3' />
Inbox
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink>
<MDBIcon icon='paper-plane' className='fas fa-fw me-3' />
Outbox
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink icon='address-book' onClick={() => setBasicCollapse1(!basicCollapse1)}>
Contacts
</MDBSideNavLink>
<MDBSideNavCollapse open={basicCollapse1}>
<MDBSideNavLink>Family</MDBSideNavLink>
<MDBSideNavLink>Friends</MDBSideNavLink>
<MDBSideNavLink>Work</MDBSideNavLink>
</MDBSideNavCollapse>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink>
<MDBIcon icon='file' className='fas fa-fw me-3' />
Drafts
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink>
<MDBIcon icon='heart' className='fas fa-fw me-3' />
Favourites
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink>
<MDBIcon icon='star' className='fas fa-fw me-3' />
Starred
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink>
<MDBIcon icon='trash' className='fas fa-fw me-3' />
Trash
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink>
<MDBIcon icon='ban' className='fas fa-fw me-3' />
Spam
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink icon='tag' onClick={() => setBasicCollapse2(!basicCollapse2)}>
Contacts
</MDBSideNavLink>
<MDBSideNavCollapse open={basicCollapse2}>
<MDBSideNavLink>Social</MDBSideNavLink>
<MDBSideNavLink>Notifications</MDBSideNavLink>
<MDBSideNavLink>Recent</MDBSideNavLink>
<MDBSideNavLink>Uploads</MDBSideNavLink>
<MDBSideNavLink>Backups</MDBSideNavLink>
<MDBSideNavLink>Offers</MDBSideNavLink>
</MDBSideNavCollapse>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink>
<MDBIcon icon='sticky-note' className='fas fa-fw me-3' />
Notes
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink>
<MDBIcon icon='user-circle' className='fas fa-fw me-3' />
Personal
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink>
<MDBIcon icon='ellipsis-h' className='fas fa-fw me-3' />
More
</MDBSideNavLink>
</MDBSideNavItem>
</MDBSideNavMenu>
<hr className='m-0' />
<MDBSideNavMenu>
<MDBSideNavItem>
<MDBSideNavLink>
<MDBIcon icon='cogs' className='fas fa-fw me-3' />
Settings
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink>
<MDBIcon icon='user' className='fas fa-fw me-3' />
Profile
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink>
<MDBIcon icon='shield-alt' className='fas fa-fw me-3' />
Privacy
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink>
<MDBIcon icon='user-astronaut' className='fas fa-fw me-3' />
Logout
</MDBSideNavLink>
</MDBSideNavItem>
</MDBSideNavMenu>
<div className='text-center' style={{ height: '100px' }}>
<hr className='mb-4 mt-0' />
<p>MDBootstrap.com</p>
</div>
</MDBSideNav>
<div
style={{ width: '100%', height: '100vh', paddingLeft: '240px', transition: 'padding 0.3s linear' }}
className='text-center bg-light'
ref={contentRef}
>
<div className='text-center py-5'>
<h3 className='my-5'>Resize to change the mode</h3>
<div>
<img
className='rounded'
style={{ maxWidth: '80%' }}
src='https://mdbootstrap.com/img/Photos/Others/img%20(53).webp'
/>
</div>
</div>
</div>
</>
);
}
3. Slim side navigation (dark)
Non-expandable slim sidenav with a dark background and custom width.
import React, { useRef } from 'react';
import { MDBSideNav, MDBSideNavMenu, MDBSideNavItem, MDBSideNavLink, MDBIcon } from 'mdb-react-ui-kit';
export default function App() {
const contentRef = useRef(null);
return (
<>
<MDBSideNav backdrop={false} color='dark' closeOnEsc={false} slim slimCollapsed bgColor='dark'>
<div className='text-center mt-4'>
<a className='ripple rounded-circle' data-mdb-color='light' href='#'>
<img
src='https://mdbootstrap.com/img/Photos/Avatars/img%20(29).webp'
alt='avatar'
className='rounded-circle img-fluid'
style={{ maxWidth: '60px' }}
/>
</a>
</div>
<hr />
<MDBSideNavMenu>
<MDBSideNavItem className='my-3'>
<MDBSideNavLink className='p-0 d-flex justify-content-center'>
<MDBIcon far icon='heart' size='2x'></MDBIcon>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem className='my-3'>
<MDBSideNavLink className='p-0 d-flex justify-content-center'>
<MDBIcon far icon='envelope' size='2x'></MDBIcon>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem className='my-3'>
<MDBSideNavLink className='p-0 d-flex justify-content-center'>
<MDBIcon far icon='user' size='2x'></MDBIcon>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem className='my-3'>
<MDBSideNavLink className='p-0 d-flex justify-content-center'>
<MDBIcon icon='cogs' size='2x'></MDBIcon>
</MDBSideNavLink>
</MDBSideNavItem>
</MDBSideNavMenu>
</MDBSideNav>
<div ref={contentRef} className='page-intro'>
<div className='mask p-4 text-center'>
<h1>Natalie Smith</h1>
<h2>Portfolio</h2>
</div>
</div>
</>
);
}
.sidenav[data-mdb-slim-width='90'] {
width: 90px;
}
.page-intro {
background-image: url('https://mdbcdn.b-cdn.net/img/Photos/Others/img%20(52).webp');
background-size: cover;
background-position-x: center;
background-color: white;
width: 100vw;
height: 100vh;
}
.mask {
background-color: rgba(66, 66, 66, 0.4);
width: 100%;
height: 100%;
color: rgba(255, 255, 255, 0.8);
}
.mask h1 {
margin-top: 220px;
font-size: 6rem;
}
.mask h2 {
font-size: 2.8rem;
}
@media (max-width: 500px) {
.mask h1 {
font-size: 4rem;
}
.mask h2 {
font-size: 2rem;
}
}
Sidenav small and with categories
import React, { useState, useRef, useEffect } from 'react';
import { Link } from 'react-router-dom';
import {
MDBContainer,
MDBSideNav,
MDBSideNavItem,
MDBSideNavLink,
MDBSideNavMenu,
MDBBtn,
MDBIcon,
} from 'mdb-react-ui-kit';
export default function SideNavPage(): JSX.Element {
const [isOpen, setIsOpen] = useState(true);
return (
<MDBContainer className='my-5'>
<MDBSideNav small open={isOpen} absolute getOpenState={(e: any) => setIsOpen(e)}>
<a
className='ripple d-flex justify-content-center py-4 mb-3'
style={{ borderBottom: '2px solid #f5f5f5' }}
href='#!'
data-mdb-ripple-color='primary'
>
<img
id='MDB-logo'
src='https://mdbcdn.b-cdn.net/wp-content/uploads/2018/06/logo-mdb-jquery-small.webp'
alt='MDB Logo'
draggable='false'
/>
</a>
<MDBSideNavMenu>
<MDBSideNavItem>
<MDBSideNavLink tag={Link} to='/'>
<MDBIcon icon='tachometer-alt' className='fa-fw me-3' />
<span className='sidenav-non-slim'>Overview</span>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem className='pt-3'>
<span className='sidenav-subheading text-muted'>Create</span>
<MDBSideNavLink tag={Link}>
<MDBIcon fas icon='plus' className='fa-fw me-3' />
<span className='sidenav-non-slim'>Project</span>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink>
<MDBIcon fas icon='plus' className='fa-fw me-3' />
Database
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem className='pt-3'>
<span className='sidenav-subheading text-muted'>Manage</span>
<MDBSideNavLink tag={Link}>
<MDBIcon fas icon='cubes' className='fa-fw me-3' />
<span className='sidenav-non-slim'>Projects</span>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink tag={Link}>
<MDBIcon fas icon='database' className='fa-fw me-3' />
<span className='sidenav-non-slim'>Databases</span>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink tag={Link}>
<MDBIcon fas icon='stream' className='fa-fw me-3' />
<span className='sidenav-non-slim'>Custom domains</span>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink tag={Link}>
<MDBIcon fas icon='code-branch' className='fa-fw me-3' />
<span className='sidenav-non-slim'>Repositories</span>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink tag={Link}>
<MDBIcon fas icon='users' className='fa-fw me-3' />
<span className='sidenav-non-slim'>Team</span>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem className='pt-3'>
<span className='sidenav-subheading text-muted'>Maintain</span>
<MDBSideNavLink tag={Link}>
<MDBIcon fas icon='chart-pie' className='fa-fw me-3' />
<span className='sidenav-non-slim'>Analytics</span>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink tag={Link}>
<MDBIcon fas icon='sync' className='fa-fw me-3' />
<span className='sidenav-non-slim'>Backups</span>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink tag={Link}>
<MDBIcon fas icon='shield' className='fa-fw me-3' />
<span className='sidenav-non-slim'>Security</span>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem className='pt-3'>
<span className='sidenav-subheading text-muted'>Admin</span>
<MDBSideNavLink tag={Link}>
<MDBIcon fas icon='money-bill' className='fa-fw me-3' />
<span className='sidenav-non-slim'>Billing</span>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink tag={Link}>
<MDBIcon fas icon='file-contract' className='fa-fw me-3' />
<span className='sidenav-non-slim'>License</span>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem className='pt-3'>
<span className='sidenav-subheading text-muted'>Tools</span>
<MDBSideNavLink tag={Link}>
<MDBIcon fas icon='hand-pointer' className='fa-fw me-3' />
<span className='sidenav-non-slim'>Drag & drop builder</span>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink tag={Link}>
<MDBIcon fas icon='code' className='fa-fw me-3' />
<span className='sidenav-non-slim'>Online code editor</span>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink tag={Link}>
<MDBIcon fas icon='copy' className='fa-fw me-3' />
<span className='sidenav-non-slim'>SFTP</span>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink tag={Link} href='www.wp.pl'>
<MDBIcon fab icon='jenkins' className='fa-fw me-3' />
<span className='sidenav-non-slim'>Jenkins</span>
</MDBSideNavLink>
</MDBSideNavItem>
<MDBSideNavItem>
<MDBSideNavLink tag={Link}>
<MDBIcon fab icon='gitlab' className='fa-fw me-3' />
<span className='sidenav-non-slim'>GitLab</span>
</MDBSideNavLink>
</MDBSideNavItem>
</MDBSideNavMenu>
</MDBSideNav>
<div style={{ padding: '20px' }} className='text-center'>
<MDBBtn onClick={() => setIsOpen(!isOpen)}>
<MDBIcon fas icon='bars' />
</MDBBtn>
</div>
</MDBContainer>
);
}
Sidenav - API
Import
import {
MDBSideNav,
MDBSideNavMenu,
MDBSideNavItem,
MDBSideNavLink,
MDBSideNavCollapse
} from 'mdb-react-ui-kit';
Properties
Events
MDBSideNav
Name | Type | Description |
---|---|---|
onOpen
|
() => void | Fires when the sidenav demands to be opened. |
onClose
|
() => void | Fires when the sidenav demands to be closed. |
onExpand
|
() => any | This event fires immediately when the sidenav is expanded |
onCollapse
|
() => any | This event fires immediately when the sidenav is collapsed |
CSS variables
As part of MDB’s evolving CSS variables approach, sidenav now use local CSS variables on .sidenav
and .sidenav-backdrop
for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
Sidenav CSS variables are in different classes which belong to this component. To make it easier to use them, you can find below all of the used CSS variables.
// .sidenav
--#{$prefix}sidenav-transform: #{$sidenav-transform};
--#{$prefix}sidenav-zindex: #{$sidenav-zindex};
--#{$prefix}sidenav-background-color: #{$sidenav-background-color};
--#{$prefix}sidenav-width: #{$sidenav-width};
--#{$prefix}sidenav-height: #{$sidenav-height};
--#{$prefix}sidenav-box-shadow: #{$sidenav-box-shadow};
--#{$prefix}sidenav-data-hidden-false-transform: #{$sidenav-data-hidden-false-transform};
--#{$prefix}sidenav-data-color-light-color: #{$sidenav-data-color-light-color};
--#{$prefix}sidenav-data-right-true-transform: #{$sidenav-data-right-true-transform};
--#{$prefix}sidenav-data-slim-collapsed-true-width: #{$sidenav-data-slim-collapsed-true-width};
--#{$prefix}sidenav-menu-padding: #{$sidenav-menu-padding};
--#{$prefix}sidenav-collapse-sidenav-link-font-size: #{$sidenav-collapse-sidenav-link-font-size};
--#{$prefix}sidenav-collapse-sidenav-link-height: #{$sidenav-collapse-sidenav-link-height};
--#{$prefix}sidenav-link-font-size: #{$sidenav-link-font-size};
--#{$prefix}sidenav-link-padding-y: #{$sidenav-link-padding-y};
--#{$prefix}sidenav-link-padding-x: #{$sidenav-link-padding-x};
--#{$prefix}sidenav-collapse-sidenav-link-padding-left: #{$sidenav-collapse-sidenav-link-padding-left};
--#{$prefix}sidenav-link-height: #{$sidenav-link-height};
--#{$prefix}sidenav-link-border-radius: #{$sidenav-link-border-radius};
--#{$prefix}sidenav-link-transition: #{$sidenav-link-transition};
--#{$prefix}sidenav-link-hover-background-color: #{$sidenav-link-hover-background-color};
--#{$prefix}sidenav-link-active-focus-background-color: #{$sidenav-link-active-focus-background-color};
--#{$prefix}sidenav-link-active-color: #{$sidenav-link-active-color};
--#{$prefix}sidenav-subheading-font-size: #{$sidenav-subheading-font-size};
--#{$prefix}sidenav-subheading-padding-y: #{$sidenav-subheading-padding-y};
--#{$prefix}sidenav-subheading-padding-x: #{$sidenav-subheading-padding-x};
--#{$prefix}sidenav-subheading-fw: #{$sidenav-subheading-fw};
--#{$prefix}sidenav-sm-link-pt: #{$sidenav-sm-link-pt};
--#{$prefix}sidenav-sm-link-pb: #{$sidenav-sm-link-pb};
--#{$prefix}sidenav-rotate-icon-margin-right: #{$sidenav-rotate-icon-margin-right};
--#{$prefix}sidenav-rotate-icon-transition: #{$sidenav-rotate-icon-transition};
--#{$prefix}sidenav-light-color: #{$sidenav-light-color};
// .sidenav-backdrop
--#{$prefix}sidenav-backdrop-zindex: #{$sidenav-backdrop-zindex};
--#{$prefix}sidenav-backdrop-background-color: #{$sidenav-backdrop-background-color};
SCSS variables
$sidenav-zindex: 1035;
$sidenav-backdrop-zindex: 1034;
$sidenav-transform: translateX(-100%);
$sidenav-background-color: $white;
$sidenav-width: 240px;
$sidenav-height: 100vh;
$sidenav-box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
$sidenav-data-hidden-false-transform: translateX(0%);
$sidenav-data-color-light-color: rgba(255, 255, 255, 0.6);
$sidenav-data-right-true-transform: translateX(100%);
$sidenav-data-slim-collapsed-true-width: 77px;
$sidenav-menu-padding: 0.2rem;
$sidenav-collapse-sidenav-link-font-size: 0.78rem;
$sidenav-collapse-sidenav-link-height: 1.5rem;
$sidenav-collapse-sidenav-link-padding-left: 3.4rem;
$sidenav-link-font-size: 0.89rem;
$sidenav-link-padding-y: 1rem;
$sidenav-link-padding-x: 1.5rem;
$sidenav-link-height: 3rem;
$sidenav-link-border-radius: 5px;
$sidenav-link-transition: all 0.3s linear;
$sidenav-link-hover-color: $primary;
$sidenav-link-hover-background-color: #f6f9fc;
$sidenav-link-active-focus-color: $sidenav-link-hover-color;
$sidenav-link-active-focus-background-color: $sidenav-link-hover-background-color;
$sidenav-link-active-color: $sidenav-link-hover-color;
$sidenav-rotate-icon-margin-right: 0.8rem;
$sidenav-rotate-icon-transition: transform 0.3s;
$sidenav-backdrop-background-color: rgba(0, 0, 0, 0.1);
$sidenav-light-color: $sidenav-data-color-light-color;
$sidenav-subheading-font-size: 0.6rem;
$sidenav-subheading-padding-y: 1rem;
$sidenav-subheading-padding-x: 1.5rem;
$sidenav-subheading-fw: 700;
$sidenav-sm-link-pt: 0.4rem;
$sidenav-sm-link-pb: $sidenav-sm-link-pt;