Skip to content

Commit 7930f0b

Browse files
committed
2 parents a925bcb + 2671603 commit 7930f0b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/reference/Field.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ The form or child form that contains the field to bind to this input.
193193

194194
The name of the field in the form that will be bound to this input.
195195

196+
#### `as` (`"input"` by default)
197+
198+
The element/componment to render, this can be a string specifying "input", "select", "textarea" or a custom component. Is "input" by default. The props of the passed custom component are available on this Field component.
199+
196200
#### `errorClassName` and `errorStyle`
197201

198202
The className and/or style to set when there is an error on this field. Default className is `field-error`.
@@ -221,6 +225,9 @@ Make sure you pass along a `value` too, this is the value that will be set when
221225
- The value of the checkbox when using primitive arrays.
222226
- The on-checked value of the checkbox when using the `setNullOnUncheck/setUndefinedOnUncheck` prop.
223227

228+
#### `innerRef`
229+
The ref prop to pass to the underlaying component/input.
230+
224231
---
225232

226233
## Custom fields/inputs

0 commit comments

Comments
 (0)