12345678910111213141516 |
- import React from 'react';
- import './index.less';
- function InputItem(props) {
- const { className = '', size = 'basic', placeholder, disabled, radius, width, onChange } = props;
- return (
- <div
- style={{ width: width || '' }}
- className={`input ${className} ${size} ${disabled ? 'disabled' : ''} ${radius ? 'radius' : ''}`}
- >
- <input placeholder={placeholder} disabled={disabled} onChange={() => onChange && onChange()} />
- </div>
- );
- }
- InputItem.propTypes = {};
- export default InputItem;
|