Each parent opens its children. The model changes only when a selectable leaf is chosen. The default node shape contains label, value and optional children; accessors support other domain shapes.
Use the back action or the breadcrumb to move between levels without inventing a second selection value.
Bind FormField to the value-owning control and add required to the form schema. Select a destination, leave the field to mark it touched, and reset it to check both value and validation state. A required marker on its own does not validate your form.
Change the settings below and interact with the live control. The preview, current application value and generated template stay together. A disabled destination lets you check that unavailable choices cannot be selected.
Use one source of truth: [(value)]="destination" or [value]="destination()" with (valueChange)="destination.set($event)". Do not bind both forms at once.
Inputs configure the control. valueChange synchronizes its model; the other Outputs report their documented actions or lifecycle. Requests for suggestions, children or remote windows require the application to supply data.
Use a visible label or an accessible name. Test keyboard navigation, disabled options, selection and closing the panel. Custom option templates should keep descriptive text and must not introduce a nested button or another focusable checkbox inside the option.
Key
Action
Tab
Moves focus into or out of the control.
ArrowDown / ArrowUp
Moves the active option through available options.
Enter
Activates the focused option.
Escape
Closes the panel without selecting another option.
The reference lists the public Inputs, models, Outputs and Templates from the pinned Core package. Click a named type to open its definition. Each applicable Template has an executable example and its actual source.
Inputs
Configure the component with [property]="value". Your application supplies these values; the component does not replace the state you pass in.
Name
Type
Default
Template binding
Description
backAriaLabel
string
'Back to previous level'
[backAriaLabel]
Accessible label for returning to the parent level.
breadcrumbAriaLabel
string
'Cascade levels'
[breadcrumbAriaLabel]
Accessible name of the current ancestor path.
clearable
boolean
false
[clearable]
Shows a clear action when a value is selected.
clearAriaLabel
string
'Clear selection'
[clearAriaLabel]
Accessible name of the clear-selection button.
compareWith
(left: V, right: V) => boolean
Object.isDerived default
[compareWith]
Comparison function for selected values; use stable domain identity.
dirty
boolean
false
[dirty]
Form state indicating that the user has changed the value.
disabled
boolean
false
[disabled]
Disables user interaction; disabled options cannot be selected.
emptyLabel
string
'No options found'
[emptyLabel]
Message displayed when there are no available options.
errors
readonly ValidationError.WithOptionalFieldTree[]
[]
[errors]
Validation errors supplied by the form or the application.
hidden
boolean
false
[hidden]
Hides the control according to the form state.
invalid
boolean
false
[invalid]
Displays the invalid state; it does not add a validation rule.
Activated option, its value and the originating event.
touch
void
(touch)="onTouch($event)"
Notifies the form that the control has been touched; not a value change.
Templates
ng-content projects content into the component. TemplateRef inputs receive a template; ng-template directives identify templates with a typed context. A directive shared by an entrypoint is not necessarily a slot of this component.
import type { NeuOptionAccessor } from '@neural-ui/core/option-api';
import type { NeuOptionDisabledAccessor } from '@neural-ui/core/option-api';
// Public declaration (reference only)
export type NeuOptionDisabledAccessor<T> = NeuOptionAccessor<T, boolean>;
NeuOptionLabelAccessor.d.ts
import type { NeuOptionAccessor } from '@neural-ui/core/option-api';
import type { NeuOptionLabelAccessor } from '@neural-ui/core/option-api';
// Public declaration (reference only)
export type NeuOptionLabelAccessor<T> = NeuOptionAccessor<T, string>;
NeuOptionPath.d.ts
import type { NeuOptionPath } from '@neural-ui/core/option-api';
// Public declaration (reference only)
export type NeuOptionPath<T> = Extract<keyof T, string> | `${Extract<keyof T, string>}.${string}`;
Load Core styles once. Use the public tokens below for local customization or a preset for application-wide changes. Keep labels, focus, selected options and disabled states readable in both light and dark themes.
Specific tokens
This component uses shared theme tokens rather than dedicated component hooks.
Shared tokens used
Override these on a local wrapper to affect this example. An override on :root affects other components that use the same token.
Token
Purpose here
Other impact
Default / fallback
--neu-border
Normal control and cell borders
Shared by other Core consumers; scope the override.
rgba(15, 23, 42, 0.08)
--neu-primary
Brand color for active controls and emphasis
Shared by other Core consumers; scope the override.
#007aff
--neu-radius
Control corner radius
Shared by other Core consumers; scope the override.
8px
--neu-surface
Main field, header or control surface
Shared by other Core consumers; scope the override.
#ffffff
--neu-text
Main text and inherited icon color
Shared by other Core consumers; scope the override.
#0f172a
--neu-text-muted
Secondary labels and supporting content
Shared by other Core consumers; scope the override.
#475569
--neu-border-subtle
Inherited theme value used by this component
Shared by other Core consumers; scope the override.
var(--neu-border)
--neu-shadow-lg
Surface or overlay elevation
Shared by other Core consumers; scope the override.