Textarea

Textarea adds styling and autoResize functionality to standard textarea element.

Textarea is applied to an input field with pTextarea directive.

Textarea is applied to an input field with pTextarea directive.

basic-demo

When autoResize is enabled, textarea grows instead of displaying a scrollbar.

auto-resize-demo

A floating label appears on top of the input field when focused. Visit FloatLabel documentation for more information.

float-label-demo

IftaLabel is used to create infield top aligned labels. Visit IftaLabel documentation for more information.

ifta-label-demo

Textarea provides small and large sizes as alternatives to the base.

sizes-demo

The fluid prop makes the component take up the full width of its container when set to true.

fluid-demo

Specify the variant property as filled to display the component with a higher visual emphasis than the default outlined style.

filled-demo

When disabled is present, the element cannot be edited and focused.

disabled-demo

The invalid state is applied using the ⁠invalid property to indicate failed validation, which can be integrated with Angular Forms.

invalid-demo
template-driven-forms-demo

Textarea can also be used with reactive forms. In this case, the formControlName property is used to bind the component to a form control.

reactive-forms-demo

Screen Reader

Textarea component renders a native textarea element that implicitly includes any passed prop. Value to describe the component can either be provided via label tag combined with id prop or using aria-labelledby, aria-label props.

Keyboard Support

KeyFunction
tabMoves focus to the input.
ON THIS PAGE
Templates
Highly customizable application templates to get started in no time with style. Designed and implemented by PrimeTek.
Learn More