DataInputcomponent
DataInput(props: DataInputProps<T>): ReactElement
| Param | Type | |
|---|---|---|
props | DataInputProps<T> | Props for DataInput, a composite input that edits an object of schema-validated sub-fields. required |
.props | Schemas<T> | Schema for the sub-fields of this input. required |
| Return | |
|---|---|
ReactElement | Element rendering one input per property, laid out in a row or column. |
Composite input that edits a data object by rendering a SchemaInput for each property schema.
- Each sub-field is keyed by its property name and validated using the matching schema in
props.
Examples
<DataInput name="address" props={addressSchemas} value={address} onValue={setAddress} />