PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 All 255 releases
give / src / Views / Components / Input / index.js

index.js in GiveWP – Donation Plugin and Fundraising Platform 4.16.9, at src/Views/Components/Input/index.js

29 lines 653 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import PropTypes from 'prop-types';
2 import classNames from 'classnames';
3 import styles from './style.module.scss';
4
5 const Input = ({type, name, onChange, value, className, ...rest}) => {
6 return (
7 <input
8 key={value}
9 className={classNames(styles.input, className)}
10 type={type}
11 name={name}
12 onChange={onChange}
13 value={value}
14 {...rest}
15 />
16 );
17 };
18
19 Input.propTypes = {
20 // Input type
21 type: PropTypes.string.isRequired,
22 // On change event
23 onChange: PropTypes.func,
24 // Input value
25 value: PropTypes.string,
26 };
27
28 export default Input;
29