/**
* A text area field with a label that reacts to an onFieldChange event.
*
* @example
* field = {
* "id": 140,
* "attribute_name": "summary",
* "description": null,
* "input_type": "text_area",
* "label": "Summary",
* "placeholder_text": "A short bio..."
*}
*
* @example
*
* Note:
* field is an json object that will contain the following attributes: attribute_name, placeholder_text, description, label.
*/
import { h } from 'preact';
import PropTypes from 'prop-types';
import { FormField } from '@crayons';
export function TextArea(props) {
const { onFieldChange } = props;
const { attribute_name, placeholder_text, description, label, maxLength } =
props.field;
return (
{description &&