skip to content

Textarea

Multi-line plain-text editing control, useful when you want to allow users to enter a sizeable amount of free-form text, for example a comment on a review or feedback form.

Demo

<div class="eds-c-form">
{{> eds-c-textarea}}
</div>

When to use this component

When not to use this component

How it works

Installation

To install the components, go to the get started guide for developers.

To use the Textarea component, enter the following command in your Terminal:

npm install @springernature/elements

Styles

Textarea in a form element. For a correct usage, import the styles of the Form component:

@import '../path/to/@springernature/elements/components/eds-c-form';

The Textarea component uses common input style rules defined in the Form component and doesn't have any specific styles.

Templates

Use the Textarea component together with the EDS Form component.

Use the form template and read the schema file.

You can pass the Textarea component in the inputs array as many times as you need.

Configuration

Properties

For more detailed information on how to use the properties correctly, go to the textarea schema file.

Help improve this page

If you’ve got a question, idea or suggestion about how to improve this component or guidance,
post in the #ask-elements Slack channel.