Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
optometrists
/
cache
/
cache
/
cache
/
.wp-cli
/
wp-content
/
plugins
/
woocommerce
/
packages
/
woocommerce-blocks
/
assets
/
js
/
base
/
components
/
textarea
:
index.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/** * External dependencies */ import classnames from 'classnames'; import PropTypes from 'prop-types'; /** * Internal dependencies */ import './style.scss'; const Textarea = ( { className = '', disabled = false, onTextChange, placeholder, value = '', } ) => { return ( <textarea className={ classnames( 'wc-block-components-textarea', className ) } disabled={ disabled } onChange={ ( event ) => { onTextChange( event.target.value ); } } placeholder={ placeholder } rows={ 2 } value={ value } /> ); }; Textarea.propTypes = { onTextChange: PropTypes.func.isRequired, disabled: PropTypes.bool, placeholder: PropTypes.string, value: PropTypes.string, }; export default Textarea;