diff --git a/frontend/src/library/input.module.css b/frontend/src/library/input.module.css deleted file mode 100644 index d5e3426..0000000 --- a/frontend/src/library/input.module.css +++ /dev/null @@ -1 +0,0 @@ -/* rules defined in this file are scoped to the js/ts file importing this. */ diff --git a/frontend/src/library/input.tsx b/frontend/src/library/input.tsx index 1455ab5..4f79b9d 100644 --- a/frontend/src/library/input.tsx +++ b/frontend/src/library/input.tsx @@ -1,15 +1,24 @@ -import styles from './input.module.css'; +import React from 'react'; -type InputComponentProps = { - placeholder?: string; +type Props = React.DetailedHTMLProps< + React.InputHTMLAttributes, + HTMLInputElement +> & { + width?: string; + height?: string; }; -function Input({ placeholder }: InputComponentProps) { +const Input: React.FC = ({ + width = '392px', + height = '44px', + ...props +}) => { return ( -
- -
+ ); -} +}; export default Input;