Add max length prop for input
This commit is contained in:
parent
4c90f07abb
commit
b849073f43
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue