diff --git a/src/components/ui/input/Input2.tsx b/src/components/ui/input/Input2.tsx new file mode 100644 index 0000000..892c1bb --- /dev/null +++ b/src/components/ui/input/Input2.tsx @@ -0,0 +1,13 @@ +import { FieldValues, useFormContext } from "react-hook-form"; +import { IInputProps2 } from "./input2_props"; + +export default function Input(props: IInputProps2) { + const { register } = useFormContext(); + return ( + + ); +} diff --git a/src/components/ui/input/input2_props.d.ts b/src/components/ui/input/input2_props.d.ts new file mode 100644 index 0000000..10687d3 --- /dev/null +++ b/src/components/ui/input/input2_props.d.ts @@ -0,0 +1,8 @@ +import { HTMLInputTypeAttribute } from "react"; +import { Path } from "react-router-dom"; + +interface IInputProps2

{ + className?: string; + type: HTMLInputTypeAttribute; + keyname: Path

; +} diff --git a/src/components/ui/input/input_porps.d.ts b/src/components/ui/input/input_props.d.ts similarity index 100% rename from src/components/ui/input/input_porps.d.ts rename to src/components/ui/input/input_props.d.ts