Input

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

Your API key is encrypted and stored securely.

Installation

ng g @spartan-ng/cli:ui input

Usage

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

Examples

Basic

Field

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

Choose a unique username for your account.

Field Group

We'll send updates to this address.

Disabled

This field is currently disabled.

Invalid

This field contains validation errors.

File

Select a picture to upload.

Inline

Grid

Required

This field must be filled out.

Badge

Input Group

https://

Button Group

Form

We'll never share your email with anyone.

RTL

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

مفتاح API الخاص بك مشفر ومخزن بأمان.

Brain API

BrnInput

Selector: [brnInput]

Inputs

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

Helm API

HlmInput

Selector: [hlmInput]

Item Input OTP