NEURALNG
API

Dialog contract

Every runtime declaration is canonical: NeuralDialog, NeuralDialogHeader, NeuralDialogBody, NeuralDialogFooter, and NeuralDialogInitialFocus. Previous Dialog* names remain only as deprecated aliases.

Inputs

NameTypeDefaultPurpose
openModelSignal<boolean>false Controlled visibility model.
modalbooleantrue Uses showModal(); false uses show().
closablebooleantrue Renders the localized close action.
closeOnEscapebooleantrue Allows Escape dismissal.
dismissibleBackdropbooleantrue Allows pointer dismissal outside a modal.
fluidbooleanfalse Uses the viewport-safe fluid width.
fullbooleanfalse Fills the complete dynamic viewport; takes precedence over fluid.
showFullScreenButtonbooleanfalse Shows a full-screen toggle immediately before the close action.
ariaLabelstring | nullnull Direct accessible name.
ariaLabelledbystring | nullnull ID of the visible dialog heading.
ariaDescribedbystring | nullnull ID of descriptive dialog content.
closeLabelstring | nulllocale Close-button label override.
enterFullScreenLabelstring | nulllocale Accessible enter-full-screen label override.
exitFullScreenLabelstring | nulllocale Accessible exit-full-screen label override.
unstyledbooleanfalse Removes every Neural visual class.
dialogClassstring'' Additive class on native dialog.
classesNeuralDialogClasses{} Typed additive slot classes.

Outputs

openChangebooleanGenerated by the open model.
fullChangebooleanUser-triggered full-screen state change.
openedvoidNative dialog entered the top layer.
closedNeuralDialogCloseEvery completed close with exact reason.

Imperative methods

show()

Opens with modal/non-modal policy.

close(reason = 'api', returnValue = '', event?)

Closes and records intent plus native return value.

Semantic sections

neural-dialog-headerheaderClassSemantic header slot.
neural-dialog-bodybodyClassMain content slot.
neural-dialog-footerfooterClassAction-row slot.
neuralDialogInitialFocusdirectiveReceives focus after opening.

Typed class slots

root

Native dialog element.

header

Projected header section.

body

Projected body section.

footer

Projected footer section.

closeButton

Localized close button.

closeIcon

Neural Icons close glyph.

fullScreenButton

Optional full-screen toggle action.

fullScreenIcon

Dynamic maximize/minimize Neural Icon.

Public types

NeuralDialogCloseReason

'api' | 'escape' | 'backdrop' | 'close-button' | 'native'

NeuralDialogClose

{ reason, returnValue, nativeEvent? }

NeuralDialogClasses

Typed additive class-slot contract.