From bebc99f264f105ebf545d83ad58b5e352ab29e57 Mon Sep 17 00:00:00 2001 From: ali josheghani Date: Thu, 30 May 2024 16:16:45 +0330 Subject: [PATCH] feat add input components --- src/components/input/index.tsx | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/components/input/index.tsx diff --git a/src/components/input/index.tsx b/src/components/input/index.tsx new file mode 100644 index 0000000..645bc3f --- /dev/null +++ b/src/components/input/index.tsx @@ -0,0 +1,29 @@ +import { InputProps } from "../../types/props"; + +const Input = ({ + label, + id, + type, + name, + placeholder, + extra, + ...attrs +}: InputProps) => { + return ( +
+ + +
+ ); +}; + +export default Input;