aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/Input.js
blob: e4fdefa0f7c7f406498973dd461e3b3e429376f9 (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 React 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 React.memo(Input);