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.
Documentation
The top of a drawer: a logo and a close button.
How to use it
- Put the logo in the
logoslot. 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