NEURALNG

PUBLIC API

Drawer contract

All runtime declarations follow the canonical NeuralDrawer* naming standard.

Inputs

NameTypeDefaultPurpose
openModelSignal<boolean>false Controlled visible state.
position'start' | 'end' | 'top' | 'bottom''end' Logical viewport edge.
modalbooleantrue Uses native dialog top layer when true and non-modal Popover top layer when false.
closablebooleantrue Renders localized close action.
closeOnEscapebooleantrue Allows Escape dismissal.
dismissibleBackdropbooleantrue Allows modal backdrop dismissal.
ariaLabelstring | nullnull Direct accessible name.
ariaLabelledbystring | nullnull Visible heading ID.
ariaDescribedbystring | nullnull Description ID.
closeLabelstring | nulllocale Close action label override.
closeIconstring'nt-x' Neural Icons glyph suffix.
unstyledbooleanfalse Removes NeuralNg visual classes.
drawerClassstring'' Additive native dialog class.
classesNeuralDrawerClasses{} Typed additive class slots.

Outputs

openChangebooleanGenerated by the open model.
openedvoidNative drawer entered the top layer.
closedNeuralDrawerCloseCompleted close with exact reason.

Methods

show()

Opens the drawer.

toggle()

Toggles controlled state.

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

Closes with deterministic metadata.

Sections

neural-drawer-headerNeuralDrawerHeader headerClass
neural-drawer-bodyNeuralDrawerBody bodyClass
neural-drawer-footerNeuralDrawerFooter footerClass
neuralDrawerInitialFocusNeuralDrawerInitialFocus Initial focus marker

Class slots

root

Native dialog panel.

header

Projected header section.

body

Independently scrollable body.

footer

Action section.

closeButton

Localized close action.

closeIcon

Close Neural Icon.

Types

NeuralDrawerPosition

'start' | 'end' | 'top' | 'bottom'

NeuralDrawerCloseReason

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

NeuralDrawerClose

{ reason, returnValue, nativeEvent? }

NeuralDrawerClasses

{ root?, header?, body?, footer?, closeButton?, closeIcon? }

Deprecated aliases

DrawerComponent, the old section component names and DrawerInitialFocusDirective remain only for compatibility. New code and generated output must use NeuralDrawer*.

Task details

The document remains interactive behind this panel.