Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add email capture component #17

Open
ndarilek opened this issue Dec 21, 2015 · 2 comments
Open

Add email capture component #17

ndarilek opened this issue Dec 21, 2015 · 2 comments

Comments

@ndarilek
Copy link

I'd like a component similar to the signup component, but for just requesting an email address for subscribing to a MailChimp or other list.

I guess this is somewhat related to #8, but in the absence of a solution there, capturing emails is one feature I was surprised to see missing.

Thanks for this, looks like a very neat project!

@dennybritz
Copy link
Owner

Good idea. I'll see if I can get it done over the holidays!

@dennybritz
Copy link
Owner

Added this in 10cccc5. You should now be able to write something like:

<SignupModal modalId="signup-modal" onSubmit={(data) => console.log(data)}>
  <SignupModal.Input name="email" type="email" required label="Email" placeholder="Email Address"/>
</SignupModal>

This will render the modal with only an email field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants