UNPKG

@cosva-lab/form-builder

Version:
29 lines (26 loc) 806 B
import { __assign } from './_virtual/_tslib.js'; import React from 'react'; import { Input } from './inputsTypes/Input/index.js'; function Inputs(props) { var onChangeField = props.onChangeField, field = props.field; var type = field.type; switch (type) { case 'date': case 'email': case 'number': case 'password': case 'search': case 'tel': case 'text': case 'time': case 'url': case 'week': case 'datetime-local': case undefined: return React.createElement(Input, __assign({}, { field: field, onChangeField: onChangeField, type: type })); default: return null; } } export { Inputs, Inputs as default }; //# sourceMappingURL=Inputs.js.map