mirror of
https://github.com/react95-io/React95.git
synced 2026-04-26 03:00:18 -04:00
Delete TextArea.jsx
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user