Etch component

Drawer Menu 2

Bottom menu drawer, from Nick Arce's Crux pattern: large links and a featured post. Opens from a button with the id open-mac-drawer-menu-2.

Drawer Menu 2

Copy Drawer Menu 2

Configurator settings

Change a setting in the configurator to include it.

Optional. Copies the component under its own name, such as News Card Alpha for a site.

Documentation

A menu drawer that slides up from the bottom, from Nick Arce's Crux pattern: large links and a featured post. It suits phones, where the bottom of the screen is easy to reach.

How to use it

  • Give a button on the page the id open-mac-drawer-menu-2. The drawer opens when it's clicked.
  • The links and the featured post are inside the component, so edit them in Etch's component editor after pasting it. The links are a MAC Drawer Nav 1, and the post is a MAC Drawer Card 2.

Good to know

  • It's a MAC Drawer 1, so it closes with a drag down, the Escape key or a click on the overlay.
  • 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