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.

Drawer Newsletter 1

Copy Drawer Newsletter 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

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 wsf makes 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.

Reference

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

Loading the reference