Skip to content
This repository was archived by the owner on Apr 30, 2018. It is now read-only.

Commit aecd844

Browse files
committed
added email and hidden, cleanup
1 parent 229c1a4 commit aecd844

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

README.md

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ _Example checkbox field_
203203
##### default (string, optional)
204204
>The default can be set to the `value` of one of the `options`.
205205
206-
##### options (array)
206+
##### options (array, required)
207207
>`options` is an array of options for the radio form field to display. Each option should be an object with a `name`(string) and `value`(string or number).
208208
209209
_Example radio field_
@@ -234,10 +234,10 @@ _Example radio field_
234234
#### Select form field
235235
>The select field allows selection via dropdown using the select element.
236236
237-
##### default (number)
237+
##### default (number, optional)
238238
>The default can be set to the index of one of the `options`.
239239
240-
##### options (array)
240+
##### options (array, required)
241241
>`options` is an array of options for the select form field to display. Each option should be an object with a `name`(string). You may optionally add a `group` to some or all of your options.
242242
243243
_Example select field_
@@ -322,6 +322,7 @@ _Example number field_
322322
---
323323
#### Password form field
324324
>The password field allows password input, it uses an input with `type='password'`.
325+
##### default (string, optional)
325326

326327
_Example password field_
327328
```json
@@ -334,10 +335,33 @@ _Example password field_
334335

335336
---
336337
#### Hidden form field
338+
>The hidden field allows hidden input, it uses an input with `type='hidden'`.
339+
340+
##### default (number or string, required)
341+
342+
_Example password field_
343+
```json
344+
{
345+
"key": "hiddenCode",
346+
"type": "hidden",
347+
"default": "hidden_code"
348+
}
349+
```
337350

338351
---
339352
#### Email form field
353+
>The email field allows email input, it uses an input with `type='email'`. Browsers will provide basic email address validation by default.
354+
355+
##### default (string, optional)
340356

357+
_Example password field_
358+
```json
359+
{
360+
"key": "email",
361+
"type": "email",
362+
"placeholder": "[email protected]"
363+
}
364+
```
341365

342366
## Roadmap
343367

0 commit comments

Comments
 (0)