Textarea
Last updated
Was this helpful?
Last updated
Was this helpful?
/**
* @param {string} [label] - Component label.
* @param {string} [help] - Component description.
* @param {string} name - Attribute name.
* @param {function} [onChange] - Callback called when the value changes.
* @param {object} attributes - Object containing block attributes.
* @param {function} setAttributes - Function to set new block attribute values.
*/
"testTextarea": {
"type": "string",
"default": ""
}
import {
TwebBlockTextareaControl,
} from '@tigriweb/components/attributes';
<TwebBlockTextareaControl
label={ __('Textarea Label', 'your-theme-name') }
help={ __('Textarea Description', 'your-theme-name') }
name="testTextarea"
{ ...{ attributes, setAttributes } }
/>