README
Newsletter Signup Form
A form used to sign up for the email newsletter
Props
buttonText
(string) [optional] - Text for the form's submit buttonplaceholder
(string) [optional] - Placeholder text for the email input field.placement
(option, ["mega-nav","footer","subscribe-module"]) - Used for analytics, tracked underNewsletter Signup
assignup_type
on form submission.allowHorizontalLayout
(boolean) [optional] - If true, submit button will be displayed to the right of the text input on viewports 768px wide and above. Defaults totrue
.theme
(object) [optional] - Controls the appearance of the form.theme.background
should be one of["light", "dark", "brand"]
.submitEndpoint
(string) [optional] - URL to which the form and analytics data will bePOST
ed. Intended for use in testing. Defaults tohttps://util.hashicorp.com/forms/standard
.finished
(function) [optional] - Callback function to be called on success or on error after form submission is attempted. This function will be passed a single argument, being an object{ error }
, whereerror
is an error message string if the submission errored, ornull
if the submission was successful.
Dependents
email-subscribe
footer
mega-nav
Depends On
hashi-button
hashi-checkbox-input
hashi-text-input
localstorage-polyfill