From b849073f43ac70f0ecf924598b68c939d1102e96 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Fri, 4 Oct 2024 18:39:08 +0200 Subject: [PATCH] Add max length prop for input --- src/components/Input/Input.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/Input/Input.tsx b/src/components/Input/Input.tsx index fd2437f..32ad620 100644 --- a/src/components/Input/Input.tsx +++ b/src/components/Input/Input.tsx @@ -85,6 +85,8 @@ type Props = { min?: number | string; max?: number | string; + + maxLength?: number; }; export const Input = forwardRef( @@ -108,6 +110,7 @@ export const Input = forwardRef( step, name, inputClassName, + maxLength, type = "text", min, max, @@ -155,6 +158,7 @@ export const Input = forwardRef( step={step} min={min} max={max} + maxLength={maxLength} />