Documentation
Design
Components
Textarea

EccUtilsDesignTextarea Component

2.0.0-alpha.6
<ecc-utils-design-textarea/>
EccUtilsDesignTextarea

Overview

The ecc-utils-design-textarea component provides a multi-line text input field for forms, suitable for capturing longer user input.

This component is a styled wrapper around the native HTML <textarea> element and supports disabled states, placeholder text, and resizability.

Usage

Basic Textarea

This example shows a default textarea with a placeholder.

Textarea with Label

This example shows a textarea with a corresponding label.

Your Message

Properties

PropertyTypeDefaultDescription
placeholderstring""Placeholder text for the textarea.
valuestring""The current value of the textarea.
disabledbooleanfalseWhen true, disables the textarea.
rowsnumber3The number of visible text lines.
colsnumberundefinedThe visible width of the text control.

placeholder

Provides a hint to the user about what information to enter in the textarea field.

<EccUtilsDesignTextarea placeholder="Enter your feedback here..." />

value

The current value of the textarea field. Can be used for controlled components in React.

<EccUtilsDesignTextarea value="Pre-filled content goes here" />

disabled

When true, the textarea is non-interactive and visually de-emphasized.

<EccUtilsDesignTextarea disabled={true} placeholder="Cannot edit this" />

rows

Specifies the number of visible text lines for the textarea, controlling its height.

<EccUtilsDesignTextarea rows={5} placeholder="Taller textarea" />

cols

Specifies the visible width of the textarea in average character widths.

<EccUtilsDesignTextarea cols={50} placeholder="Wider textarea" />

Events

Event NameReact Event NameDetail TypeDescription
ecc-input-changedonEccInputChanged{ value: string }Fired when the value of the textarea changes.

ecc-input-changed

Fires whenever the user types or pastes content into the textarea, providing the current value.

<EccUtilsDesignTextarea 
  onEccInputChanged={(event) => {
    console.log('Textarea value:', event.detail.value);
  }}
/>
Elixir Cloud & AAICloud SDKElixir

Released under Apache 2.0 License.

Copyright © 2023-2025 ELIXIR