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

Field

Use hlm-field , hlmFieldLabel , and hlm-field-description to create a textarea with a label and description.

Enter your message below.

Disabled

Invalid

Please enter a valid message.

Button

Form

You can @mention other users and organizations.

RTL

To enable RTL support in spartan-ng, see the RTL configuration guide.

شاركنا أفكارك حول خدمتنا.

Brain API

BrnTextarea

Selector: [brnTextarea]

Inputs

PropTypeDefaultDescription
id string | undefined `brn-textarea-${++BrnTextarea._id}` The id of the textarea.
forceInvalid boolean false Whether to force the textarea into an invalid state.

Helm API

HlmTextarea

Selector: [hlmTextarea]

Toggle Tabs