Textarea

Displays a form textarea or a component that looks like a textarea.

Installation

ng g @spartan-ng/cli:ui textarea

Usage

import { HlmTextareaImports } from '@spartan-ng/helm/textarea';
<textarea hlmTextarea placeholder="Type your message here."></textarea>

Examples

Disabled

With Label

With Button

Form

You can @mention other users and organizations.

Brain API

BrnTextarea

Selector: [brnTextarea]

Inputs

PropTypeDefaultDescription
id string | undefined `brn-textarea-${++BrnTextarea._id}` The id of the textarea.

Helm API

HlmTextarea

Selector: [hlmTextarea]

Inputs

PropTypeDefaultDescription
error TextareaVariants['error'] auto Controls the error visual state of the textarea. Defaults to 'auto', which infers the state from the associated form control.
Toggle Tabs