Text Area

Text Area is an input field component for multi-line text input.
const charLimit = 140;
const [text, setText] = useState('');

useEffect(() => setText('Great job. This is excellent!'), []);

return (
    onValueChanged={({ detail: { value } }) => setText(value)}

Common input field features

Text Area includes all Text Field and shared input field features.

Automatic height adjustment

Unless set to a fixed height, Text Area adjusts its height automatically based on its content. The default and minimum height is two rows of text.

Minimum and maximum height

The automatic resizing can be restricted to a minimum and maximum height by using CSS min-height and max-height.