Repository URL to install this package:
|
Version:
4.0.61 ▾
|
import { TextBoxProps, TextBoxState } from '../typings'
import { toClassList } from './toClassList'
export function toValidationProps(props: TextBoxProps, state: TextBoxState) {
const classList = toClassList(props, state)
const { customAttributes } = props
const maxLength = props.maxLength || state.maxLength
return {
className: classList.input,
maxLength,
...customAttributes,
}
}