Add max length prop for input

This commit is contained in:
Arnaud 2024-10-04 18:39:08 +02:00
parent 4c90f07abb
commit b849073f43
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663
1 changed files with 4 additions and 0 deletions

View File

@ -85,6 +85,8 @@ type Props = {
min?: number | string; min?: number | string;
max?: number | string; max?: number | string;
maxLength?: number;
}; };
export const Input = forwardRef<HTMLInputElement, Props>( export const Input = forwardRef<HTMLInputElement, Props>(
@ -108,6 +110,7 @@ export const Input = forwardRef<HTMLInputElement, Props>(
step, step,
name, name,
inputClassName, inputClassName,
maxLength,
type = "text", type = "text",
min, min,
max, max,
@ -155,6 +158,7 @@ export const Input = forwardRef<HTMLInputElement, Props>(
step={step} step={step}
min={min} min={min}
max={max} max={max}
maxLength={maxLength}
/> />
</div> </div>