mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-22 10:58:36 +00:00
feat(interface/input): minLength & maxLength option (#286)
This commit is contained in:
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 }) => (
|
||||
|
||||
Reference in new issue
Block a user