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
How do I apply styling #44
Comments
what is your problem exactly ? |
I am creating the app using reactjs and material-ui. Since I am trying to use only email to subscribe to mailchimp, I wanted to use But, I also want the email field on my page to look like the attached screenshot So, here is how I used your component to do so `<MailchimpSubscribe
` |
Is it possible for you to create a codesandbox.io example ? will be easier to debug |
You're passing an event directly into the <form
onSubmit={(event) => {
event.preventDefault();
subscribe({ EMAIL: emailAddress });
}}
> |
Thank you |
How do I apply material-ui styling to
<MailchimpSubscribe url={url}/>
I am only using email for subscription and my form is as follows
<form onSubmit={formData => subscribe(formData)}> <TextField variant="outlined" margin="normal" required type="email" fullWidth id="email" label="Email Address" name="EMAIL" autoComplete="email" autoFocus onChange={e => setEmail(e.target.value)} /> <Button type="submit" fullWidth variant="contained" color="primary" className={classes.submit} > Subscribe </Button> </form>
The text was updated successfully, but these errors were encountered: