From ff012ace1ac4b423980723f9087d3c09b95a3666 Mon Sep 17 00:00:00 2001 From: anttibull Date: Fri, 16 Sep 2022 16:51:30 +0300 Subject: [PATCH] wip: form --- src/components/Input/Input.tsx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/components/Input/Input.tsx diff --git a/src/components/Input/Input.tsx b/src/components/Input/Input.tsx new file mode 100644 index 0000000..8d080ec --- /dev/null +++ b/src/components/Input/Input.tsx @@ -0,0 +1,22 @@ +import React, { ChangeEvent, FC } from 'react' + +export type PropsType = { + onChange: (value: ChangeEvent) => void + onClick?: () => void + placeholder?: string + value?: string +} + +export const Input: FC = ({ + onChange, + onClick, + placeholder, + value, +}) => ( + +)