Repository URL to install this package:
Version:
0.9.6 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const toClassList_1 = require("./toClassList");
function toValidationProps(props, state) {
const classList = toClassList_1.toClassList(props, state);
const { customAttributes } = props;
const maxLength = props.maxLength || state.maxLength;
return Object.assign({ className: classList.input, maxLength }, customAttributes);
}
exports.toValidationProps = toValidationProps;
//# sourceMappingURL=toValidationProps.js.map