NEURALNG

PUBLIC API

Radio contracts

Canonical symbols are NeuralRadioGroup and NeuralRadio, with nullable generic values and typed semantic events.

Group inputs

InputTypeDefaultPurpose
optionsreadonly TOption[][] Data-driven choices; takes precedence over projected radios.
optionLabelstring'label' Property used as visible option text.
optionValuestring'value' Property mapped to the nullable value model.
optionDisabledstring'disabled' Property that disables an individual option.
optionIconstring'iconClass' Property containing an option icon class.
orientation'vertical' | 'horizontal''vertical' Layout and ARIA orientation.
disabledbooleanfalse Disables every native radio input.
readonlybooleanfalse Keeps focus while blocking user mutation.
requiredbooleanfalse Marks every native input and group as required.
invalidbooleanfalse Exposes invalid state for ARIA and styling.
pendingbooleanfalse Exposes aria-busy on the group.
touched / dirtybooleanfalse Forms state inputs retained for adapter parity.
fluidbooleanfalse Expands the group to available inline size.
radioGroupIdstring'' Explicit stable group id.
radioName / namestring'' Shared native input name; name takes precedence.
ariaLabel / ariaLabelledbystring'' Accessible naming options for the radiogroup.
unstyledbooleanfalse Removes NeuralNg visual classes.
radioGroupClassstring'' Additive consumer root classes.
classesNeuralRadioClasses{} Typed visual class slots.

Projected Radio inputs

valueTValue · required

Value committed when the projected option is selected.

disabledboolean · false

Disables this projected option.

iconClassstring · ''

Optional icon; nt base class is normalized automatically.

radioClassstring · ''

Additive classes for this projected option.

Models and outputs

valuemodel<TValue | null>

Selected value; valueChange supports two-way binding.

selectionChangeNeuralRadioSelectionChange

User-only semantic event with previous value, option and source.

touchvoid

Emitted when focus leaves the complete group.

Methods

focus(options?)void

Moves focus to the selected or first enabled roving tab stop.

reset()void

Restores the nullable value model to null without a user event.

Typed class slots

root

Radiogroup layout.

option

Every data or projected option label.

input

Visually hidden native radio input.

control

Visible circular control.

selectedControl

Selected control state.

disabledOption

Disabled option state.

label

Visible option content.

optionIcon

Optional icon.

Public types

NeuralRadioOrientation

'horizontal' | 'vertical'

NeuralRadioInteractionSource

'keyboard' | 'pointer'

NeuralRadioSelectionChange<TValue, TOption>

{ value; previousValue; option; source }

NeuralRadioClasses

Typed root, option, input, control, state, label and icon slots.

Legacy aliases

RadioGroupComponent and RadioComponent remain deprecated compatibility aliases. New code and generated AI context use only the Neural-prefixed symbols.