sunweb

Textarea

component textarea form-element

Definition


Text area enables the user to interact with and input text multiline.

Handlebars

Loading...

Javascript

Loading...

Text area with text.

Handlebars

Loading...

Javascript

Loading...

States


c-textarea > .is-disabled

The disabled state blocks the users interaction and modifies the appearance to let them know that edition is not possible.

.is-disabled > c-textarea

In some cases, the textarea is not disabled at component level but instead one ancestor is marked as disabled. This is mainly done when loading data to let the users know that the component is not useful at that moment.


c-textarea > .has-success

The success state let the user know that the filled information is correct.


c-textarea > .has-warning

The warning state let the user know that the filled information has an issue.


c-textarea > .has-error

The error state let the user know that the filled information has an error.


Modifiers


c-textarea > .c-textarea--highlighted

The highlighted modifier changes the color when an option is selected.
It is used in contexts when is useful to let the users know that an options is choosen (i.e. search filters or booking steps).