import React from 'react' import PropTypes from 'prop-types' import { CX } from '../constants' import Text from './text' class Textarea extends React.PureComponent { handleOnChange = (e) => { this.props.onChange(e.target.value) } render() { const { placeholder, prependIcon, value, onKeyUp, onFocus, onBlur, title, isRequired, maxLength, } = this.props const inputClasses = CX({ d: 1, text: 1, outlineNone: 1, lineHeight125: 1, displayBlock: 1, py10: 1, bgTransparent: 1, fs15PX: 1, flexGrow1: 1, maxH100VH: 1, resizeVertical: 1, cPrimary: 1, px5: !!prependIcon, pl15: !prependIcon, }) return (
{ !!title &&
{title}
}