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