Drawer
Overview
Navigation drawers increase the level of a products discoverability by letting the user know exactly where they are in the product, and taking them to where they want to go quickly and effortlessly. It can be used as a first or second level of navigation.
A navigation drawer is a composition of menu components.
To implement a simple drawer container, just add the qtm-drawer and qtm-drawer-body components to your html.
<qtm-drawer>
<qtm-drawer-body>...</qtm-drawer-body>
</qtm-drawer>
Header support
A header can be toggled on/off within the drawer just by adding a qtm-drawer-header component into a drawer container.
<qtm-drawer>
<qtm-drawer-header>...</qtm-drawer-header>
</qtm-drawer>
Footer support
A footer can be toggled on/off within the drawer just by adding a qtm-drawer-footer component into a drawer container.
<qtm-drawer>
<qtm-drawer-footer>...</qtm-drawer-footer>
</qtm-drawer>
Customize your drawer
Use classes attribute to override or extend the styles applied to the component (you can use available utility classes by importing @qtm/css/dist/utilities.css).
Scroll vertically if needed
Use overflow-y-auto to allow vertical scrolling if needed.
<qtm-drawer>
<qtm-drawer-body classes="overflow-y-auto">...</qtm-drawer-body>
</qtm-drawer>