NEURALNG

INPUT

API

A deliberately small directive API layered on the complete native HTMLInputElement contract.

Directive

NeuralInputinput[neuralInput]

exportAs: neuralInput

Inputs

NameTypeDefaultDescription
inputSize NeuralInputSize 'medium' Visual size; native HTML size remains untouched.
variant NeuralInputVariant 'outlined' Outlined or filled token treatment.
fluid boolean false Fills the available inline width.
unstyled boolean false Removes NeuralNg visual classes.

InputGroup

Optional visual composition around the unchanged native input.

startIconstring | null

Logical leading icon classes. Default: null

endIconstring | null

Logical trailing icon classes. Default: null

fluidboolean

Fills the available inline width. Default: false

unstyledboolean

Removes group visual classes. Default: false

inputGroupClassstring

Additive group-root classes. Default: ''

iconClassstring

Additive classes shared by both icons. Default: ''

Methods

focus(options?: FocusOptions) => void

Focuses the native input.

select() => void

Selects the native input value.

Native API remains public

Attributes such as type, name, value, autocomplete, inputmode, minlength, maxlength, pattern, required, readonly and disabled stay on the input. Listen to native input, change, focus and blur events without NeuralNg aliases.