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

This commit is contained in:
Lockwood authored and GitHub committed 2023-05-09 00:00:47 +02:00
1 parent 1d65379fc0
commit 9a0fc24e69
2 files changed
+6

No files matched your search

@@ -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 }) => (