Created
May 16, 2019 00:59
-
-
Save gaurangrshah/dc4c59b8bcce3bf412cf75d9a7bcbe5c to your computer and use it in GitHub Desktop.
netlify form boilerplate - no js needed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
export default () => { | |
return ( | |
<div className="call mt-5 w-10 ml-7"> | |
<div className="call-box-top"> | |
<div className="call-phone"> | |
<form | |
name="contact-form" | |
method="post" | |
data-netlify="true" | |
data-netlify-honeypot="bot-field" | |
> | |
<input name="name" placeholder="Your Name" type="text" className="ml-2" /> | |
<input name="email" placeholder="[email protected]" type="email" className="ml-2" /> | |
<button type="submit" className="ml-4 btn btn-primary btn-lg">Send</button> | |
</form> | |
</div> | |
</div> | |
</div> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment