NEURALNG

PUBLIC API

Slider contracts

Canonical exports include the complete single, range, thumb and event type surface.

Inputs and model

InputTypeDefaultPurpose
valuemodel<number | [number, number]>0 Single value or ordered range tuple.
rangebooleanfalse Renders two native range thumbs.
min / maxnumber0 / 100 Normalized inclusive numeric bounds.
stepnumber1 Positive interaction increment.
orientation'horizontal' | 'vertical''horizontal' Visual and ARIA orientation.
showValuebooleanfalse Displays the normalized value beside the control.
valueLabelstring'' Overrides visible output text.
rangeStartAriaLabel / rangeEndAriaLabelstring'' Distinct accessible names for range thumbs.
rangeStartAriaValueText / rangeEndAriaValueTextstring'' Human-readable range thumb values.
disabled / readonly / invalidbooleanfalse Interaction and validation states.
touched / dirtybooleanfalse Forms state parity inputs.
name / sliderIdstring'' Native name and deterministic id.
ariaLabel / ariaLabelledBy / ariaValueTextstring'' Single-thumb accessible naming and value description.
fluidbooleanfalse Fills available inline size.
unstyledbooleanfalse Removes NeuralNg visual classes.
sliderClass / inputClassstring'' Additive root and native input classes.
classesNeuralSliderClasses{} Typed root, input, output and range-layer slots.

Outputs

valueChangeNeuralSliderValue

Generated model output for every value update.

slideStartNeuralSliderEvent

Pointer interaction begins.

slideEndNeuralSliderEvent

Pointer interaction ends.

valueCommitNeuralSliderEvent

Native change or range-track selection commits.

touchvoid

A native thumb loses focus.

Methods

focus(options?)void

Focuses the first native thumb.

reset()void

Restores min, or [min,max] in range mode.

Typed class slots

root

Complete control and optional output layout.

input

Single input or both native range inputs.

value

Visible value output.

range

Two-thumb positioning surface.

track

Range track.

fill

Selected interval between thumbs.

Public types

NeuralSliderValue

number | NeuralSliderRangeValue

NeuralSliderRangeValue

[number, number]

NeuralSliderThumb

'start' | 'end'

NeuralSliderOrientation

'horizontal' | 'vertical'

NeuralSliderEvent

{ value; originalEvent; thumb? }

NeuralSliderClasses

Typed root, input, value, range, track and fill slots.

Legacy alias

SliderComponent remains deprecated for compatibility. New code and AI context use NeuralSlider.