Reference Source
import {Textarea} from '@adobe/coral-spectrum'
public class | source

Textarea

Expression Extends:

class Textarea extends BaseFormField(BaseComponent(HTMLTextAreaElement))

A Textarea component is the default multi-line text form field.

See:

Example:

Markup
<textarea is="coral-textarea"></textarea>
JS constructor
new Coral.Textarea();

Static Member Summary

Static Public Members
public static

Returns Textarea variants.

Member Summary

Public Members
public

The textarea's variant. See TextareaVariantEnum.

  • TextareaVariantEnum.DEFAULT by default.
  • reflected

Method Summary

Public Methods
public

reset()

Inherited from BaseFormField#reset.

Static Public Members

public static variant: TextareaVariantEnum: * source

Returns Textarea variants.

Public Members

public variant: String source

The textarea's variant. See TextareaVariantEnum.

  • TextareaVariantEnum.DEFAULT by default.
  • reflected

Public Methods

public reset() source

Inherited from BaseFormField#reset.