NEURALNG

PUBLIC CONTRACT

Field API

Canonical standalone declarations and their beta contracts.

Declarations

NameKindPurpose
NeuralFieldComponent Field context and visual state host.
NeuralFieldLabelDirective Connects a visible label to the control.
NeuralFieldControlDirective Bridges native/custom controls.
NeuralFieldHintDirective Adds a described-by hint slot.
NeuralFieldErrorDirective Adds announced correction feedback.

Field inputs

InputTypeDefaultPurpose
controlIdstringrequired Stable control and slot ID prefix.
describedBystring'' External description IDs.
invalidbooleanfalse Synchronizes invalid presentation and ARIA.
requiredbooleanfalse Adds marker, ARIA and native required.
disabledbooleanfalse Disables the participating control.
readonlybooleanfalse Marks the control readonly.
pendingbooleanfalse Exposes busy validation state.
fluidbooleanfalse Fills the available inline width.
unstyledbooleanfalse Removes NeuralNg visual classes.

Directive inputs

Only NeuralFieldError adds an input: live: 'off' | 'polite' | 'assertive', defaulting to polite. Other directives derive their complete contract from Field context.

State and structural hooks

neural-field-root, neural-field--invalid, --required, --disabled, --readonly, --pending and the neural-field__* slot hooks remain available in styled and unstyled modes.