Textarea component

A configurable text area component that allows the input of multiple lines of text. It exposes properties to control its state (e.g. disabled), initial content and validation.

Import

import { DAYTextareaComponent } from '@dayerlin-bustamante/textarea';

Dependencies

'@angular/forms': Required for integration with reactive forms (e.g. formGroup, formControlName)'/core': Required for core functionalities and shared components

Selectors

Textarea: day-textarea

Installation and Usage

npm install @dayerlin-bustamante/textarea

import { DAYTextareaComponent } from '@dayerlin-bustamante/textarea';

<day-textarea label="Label"/>

Inputs

Name Description Default
autofocus: boolean Determines if the textarea should be automatically focused false
id: <string | null> The id attribute for the textarea element. null
placeholder: string The placeholder text for the textarea.

Outputs

Not included

Directives

Not included

Public methods

Not included

Example

Description

The day-textarea component provides a multi-line text input field, designed to easily integrate with Angular's reactive forms.