Etch component

Drawer Header 1

Drawer header with a logo slot and a close button. Set the drawer's close trigger to .mac-drawer-header-1__close.

Drawer Header 1

Copy Drawer Header 1

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

The top of a drawer: a logo and a close button.

How to use it

  • Put the logo in the logo slot. The entry's Copy JSON brings MAC Logo 1's logomark there, which shows the site's logo once it's set in that component; without a logo, only the close button shows, at the end.
  • Set the drawer's Close Trigger Selector to .mac-drawer-header-1__close, so the button closes it.
  • Close label is the button's name for screen readers.

Reference

Read from the component's JSON, so it's always current.

Loading the reference