Textarea

Gives a textarea field or a component a distinct look that indicates its input capabilities.

Note

To get that same distinct look of a spartan/ui input we can simply apply the same hlmInput directive we would apply to other input elements.

Installation

npx nx g @spartan-ng/cli:ui input

Usage

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

Helm API

HlmInputError

Selector: [hlmInputError]

Inputs

PropTypeDefaultDescription
class ClassValue --

HlmInputMock

Selector: hlm-input-mock

Inputs

PropTypeDefaultDescription
error 'auto' | true --
userClass string --
required boolean --

HlmInput

Selector: [hlmInput]

Inputs

PropTypeDefaultDescription
error InputVariants['error'] auto -
class ClassValue --
Toggle Tabs