feat(interface/input): minLength & maxLength option (#286)

This commit is contained in:
Lockwood
2023-05-08 23:00:47 +01:00
committed by GitHub
parent 1d65379fc0
commit 9a0fc24e69
2 changed files with 6 additions and 0 deletions

View File

@@ -29,6 +29,8 @@ const InputField: React.FC<Props> = (props) => {
description={props.row.description}
icon={props.row.icon && <FontAwesomeIcon icon={props.row.icon} fixedWidth />}
placeholder={props.row.placeholder}
minLength={props.row.min}
maxLength={props.row.max}
disabled={props.row.disabled}
withAsterisk={props.row.required}
/>
@@ -40,6 +42,8 @@ const InputField: React.FC<Props> = (props) => {
description={props.row.description}
icon={props.row.icon && <FontAwesomeIcon icon={props.row.icon} fixedWidth />}
placeholder={props.row.placeholder}
minLength={props.row.min}
maxLength={props.row.max}
disabled={props.row.disabled}
withAsterisk={props.row.required}
visibilityToggleIcon={({ reveal, size }) => (