-
Notifications
You must be signed in to change notification settings - Fork 0
/
FeedbackForm.js
31 lines (27 loc) · 1.05 KB
/
FeedbackForm.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import styles from './FeedbackForm.module.css'
export default function FeedbackForm() {
return (
<form
className={styles.form}
data-netlify="true"
data-netlify-honeypot="bot-field"
name="feedback"
method="POST"
action="/success"
>
<input type="hidden" name="form-name" value="feedback" />
<p className={styles.hidden}>
<label>
Don’t fill this out if you’re human: <input name="bot-field" />
</label>
</p>
<label htmlFor="name">Name</label>
<input id="name" className={styles['form-field']} type="text" name="name" />
<label htmlFor="email">Email</label>
<input id="email" className={styles['form-field']} type="email" name="email" required />
<label htmlFor="feedback">What is your feedback?</label>
<textarea id="feedback" className={styles['form-field']} wrap="soft" name="feedback" required></textarea>
<button className={styles.button} type="submit">Submit</button>
</form>
)
}