import React from 'react'; import PropTypes from 'prop-types'; const TextArea = ({ // DOM props name, placeholder, value, className, row, col, disabled, autoFocus, maxLength, readOnly, // events onChange, onFocus, onBlur, format, size, children, // validated component props (if wrapped) isValidated, validationClassnames, focussed, beenFocussed, hasSubmitted, displayPass, displayFailure, error, }) => { const _disabled = disabled === true ? 'br-gray-30' : ''; const s = getStyles(styleManifest, format, size); // This enables all children of this component to share the state of this // component. const childrenWithProps = React.Children.map(children, child => React.cloneElement(child, { displayPass, displayFailure, focussed }) ); return (