blob: 2f01f0c68814c636a7e18e524fd9a05b19428379 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import { memo } from 'react';
import './Input.css';
/**
* @typedef {Object} InputProps
* @property {string} name
* @property {string} value
* @property {string=} placeholder
* @property {React.CSSProperties=} rest
*/
/**
* Input component
* @param {InputProps} props
*/
function Input({ name, value, ...rest }) {
return (
<input className="input" name={name} value={value} {...rest} />
);
}
export default memo(Input);
|