Input

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

Installation

ng g @spartan-ng/cli:ui input

Usage

import { HlmInputImports } from '@spartan-ng/helm/input';
<input hlmInput/>

Examples

File

Disabled

With Label

With Button

Form

This is your public display name.

Brain API

BrnInput

Selector: [brnInput]

Inputs

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

Helm API

HlmInput

Selector: [hlmInput]

Inputs

PropTypeDefaultDescription
error InputVariants['error'] auto Controls the error visual state of the input. Defaults to 'auto', which infers the state from the associated form control.
Item Input OTP