Delete TextArea.jsx

This commit is contained in:
Artur Bień
2019-02-19 10:54:10 +01:00
committed by GitHub
parent cb9df75228
commit ae0375c778

View File

@@ -1,30 +0,0 @@
import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
const TextArea = ({ className, resize, size, placeholder, style, ...otherProps }) => {
const baseClass = 'gds-form-group__text-area-input';
const rootClass = cx(baseClass, className, {
[`${baseClass}--${resize}`]: resize,
[`${baseClass}--${size}`]: size
});
return (
<textarea placeholder={placeholder} style={style} className={rootClass} {...otherProps} />
);
};
TextArea.displayName = 'TextArea';
TextArea.propTypes = {
/** resize-h, resize-v, no-resize */
resize: PropTypes.oneOf(['resize-h', 'resize-v', 'no-resize']),
/** xs, sm, lg */
size: PropTypes.oneOf(['xs', 'sm', 'lg']),
placeholder: PropTypes.string,
className: PropTypes.string,
style: PropTypes.object
};
export default TextArea;