From 56fb8f56dfe7c71cb04a08f3e6ca5330cb78f4c0 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Mon, 16 Sep 2024 19:06:51 +0200 Subject: [PATCH] Add input name props --- src/components/Input/Input.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Input/Input.tsx b/src/components/Input/Input.tsx index f65774b..78732e8 100644 --- a/src/components/Input/Input.tsx +++ b/src/components/Input/Input.tsx @@ -76,6 +76,8 @@ type Props = { type?: string; step?: string; + + name?: string; }; export const Input = forwardRef( @@ -98,6 +100,7 @@ export const Input = forwardRef( style, Icon, step, + name, type = "text", }, ref @@ -117,6 +120,8 @@ export const Input = forwardRef( )} ( ["input-icon-input", !!Icon], [className || ""] )} - id={id} style={style} {...attributes({ disabled,