NEURALNG

PUBLIC CONTRACT

ProgressSpinner API

A small Signal input surface for semantic, indeterminate loading feedback.

Inputs

InputTypeDefaultPurpose
size'small' | 'medium' | 'large''medium' Spinner diameter preset.
variant'solid' | 'multicolor''solid' Single semantic color or an animated five-color cycle.
severityNeuralProgressSpinnerSeverity'info' Semantic indicator color.
dynamicStrokebooleanfalse Grows and contracts the visible arc while it rotates.
dualbooleanfalse Adds a counter-rotating inner track and indicator.
reversebooleanfalse Reverses the primary direction while dual arcs stay opposed.
syncDualColorbooleantrue Keeps both dual arcs on the same multicolor cycle.
strokeWidthnumber4 SVG stroke width, clamped from 1 through 12.
speednumber900 Rotation duration in milliseconds, clamped from 200 through 10000.
labelstring | nullnull Optional visible loading label.
showLabelbooleantrue Controls visible label rendering while preserving its accessible fallback.
ariaLabelstring | nullnull Direct accessible name.
ariaLabelledBystring | nullnull ID reference that takes precedence over ariaLabel.
ariaValueTextstring | nullnull Optional human-readable task state.
unstyledbooleanfalse Removes NeuralNg visual classes.
spinnerClassstring'' Additive root classes.
classesNeuralProgressSpinnerClasses{} Typed outer, inner and label class slots.

Typed class slots

root

Semantic progressbar and label layout.

svg

Decorative SVG viewport.

track

Static circular track.

indicator

Animated indeterminate arc.

inner

Scaled inner-ring group rendered by dual mode.

innerTrack

Static inner circular track.

innerIndicator

Counter-rotating inner arc.

label

Optional visible loading text.

Public types

NeuralProgressSpinnerSize

'small' | 'medium' | 'large'

NeuralProgressSpinnerVariant

'solid' | 'multicolor'

NeuralProgressSpinnerSeverity

'primary' | 'secondary' | 'neutral' | 'info' | 'success' | 'warning' | 'error'

NeuralProgressSpinnerClasses

{ root?, svg?, track?, indicator?, inner?, innerTrack?, innerIndicator?, label? }

Legacy alias

ProgressSpinnerComponent remains compatible. New code should import NeuralProgressSpinner.