Etch component
Drawer Menu 1
Side menu drawer, from Nick Arce's Pavo pattern: header, large links, featured cards and a footer. Opens from a button with the id open-mac-drawer-menu-1.
Documentation
A side menu drawer, from Nick Arce's Pavo pattern: a header with the logo and a close button, large links, two featured cards and a footer with small links. It opens from the left.
How to use it
- Give a button on the page the id
open-mac-drawer-menu-1. The drawer opens when it's clicked. - The links, cards and footer are inside the component, so edit them in Etch's component editor after pasting it.
- It's built from the drawer kit: MAC Drawer Header 1, Nav 1, Card 1 and Footer 1. Their pages explain each part.
Good to know
- MAC Drawer 1 does the work underneath, so its settings, such as the direction or drag to close, can be changed in the component too.
- Its ids are fixed, so use it once per page.
Reference
Read from the component's JSON, so it's always current.
Loading the reference