Etch component
Drawer Newsletter 1
Newsletter signup drawer, from Nick Arce's Indus pattern. Opens from a button with the id open-mac-drawer-newsletter-1.
Documentation
A newsletter signup drawer that slides up from the bottom, from Nick Arce's Indus pattern: a title, an eyebrow, a short text, your signup form and a privacy note.
How to use it
- Give a button on the page the id
open-mac-drawer-newsletter-1. The drawer opens when it's clicked. - Set the texts with the props: Eyebrow, Title, Description and Privacy note.
- Put the ID of a WS Form form in Form ID. Without one, the drawer shows no form.
- To show it without a click, turn on Auto Open in the drawer inside the component and pick how often it comes back.
Good to know
- The form takes its look from the site's form styles. On the hub, a global stylesheet named
wsfmakes WS Form's forms follow ACSS's form settings. - Copy JSON leaves Form ID empty, since form IDs differ between sites. The demo's form, "Newsletter (demo)", sends and saves nothing.