GitHub

Textarea

Textarea allows a native HTML <textarea> element to work with the Form Field component.

Overview

The textarea component has the same functionality as a native HTML <textarea> element, with additional custom styling and functionality. It cannot be used by itself and must be contained within a DaffFormFieldComponent.

Usage

To use textarea, import DaffTextareaComponent directly into your custom component:

import { DaffTextareaComponent } from '@daffodil/design/textarea';

@Component({
  selector: 'custom-component',
  templateUrl: './custom-component.component.html',
  imports: [
    DaffTextareaComponent,
  ],
})
export class CustomComponent {}

Examples

Disabled textarea