Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<form onSubmit={props.handleSubmit}>
<FormItem
type="text"
label="Full Name"
name="fullName"
/>
<FormItem
type="textarea"
label="Comment"
name="comment"
/>
<FormItem
type="select"
label="Default Currency"
name="defaultCurrency"
options={[
{value: 'USD', label: 'American Dollar'},
{value: 'EUR', label: 'Euro'}
]}
/>
<FormItem
type="radio"
label="Gender"
name="gender"
options={[
{value: 'male', label:'Male'},
{value: 'female', label:'Female'},
{value: 'other', label:'Other'}
]}
/>
<FormItem
type="checkbox"
label="Hobbies"
name="hobbies"
options={[
{value: 'baking', label:'Baking'},
{value: 'dance', label:'Dance'}
]}
/>
<button type="submit">Submit</button>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.