The application owns open. Bind it and handle closeRequested by applying false when closing is accepted. opened and closed report lifecycle transitions, not replacement values for open. Project body content and the available header/footer slots. Keep a named trigger in the page so focus can return after dismissal. disableClose only blocks automatic dismissals; provide an explicit completion action.
The application owns open. Bind it and handle closeRequested by applying false when closing is accepted. opened and closed report lifecycle transitions, not replacement values for open. Project body content and the available header/footer slots. Keep a named trigger in the page so focus can return after dismissal. disableClose only blocks automatic dismissals; provide an explicit completion action.
Tab remains in a modal surface. Escape requests dismissal when enabled. Closing returns focus to the original trigger; persistent Sidebar is normal page navigation rather than a modal task.
Key
Action
Tab
In modal mode, move through controls inside the surface. A persistent sidebar follows normal page order.
Shift + Tab
Move backwards through the focus order; modal focus stays inside the surface.
Escape
Request dismissal when enabled; closing restores focus to the trigger.
Inputs, models and Outputs are extracted from the installed Core package. Named public types link to their definitions. Templates below include executable examples.
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
disableClose
boolean
false
[disableClose]
Prevent automatic Escape/backdrop dismissal; keep an explicit completion action available.
Requests dismissal with its reason and original event. The application accepts by applying open=false.
maximizedChange
boolean
(maximizedChange)="onMaximizedChange($event)"
Proposes the next maximized state; apply it when maximized is controlled.
opened
void
(opened)="onOpened($event)"
Reports opening of this component. Consult the payload type for the emitted data.
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.
Each example demonstrates a different template. Switch between Demo and Code to inspect its implementation, imports and state.
Projected content
*
Projected content
Events: 0
[neu-dialog-footer]
[neu-dialog-footer]
[neu-dialog-footer]
Events: 0
Public Types
Open a type to inspect its definition and interface fields.
NeuCloseReason.d.ts
import type { NeuCloseReason } from '@neural-ui/core/foundation';
// Public declaration (reference only)
export type NeuCloseReason = 'escape' | 'outside' | 'action' | 'programmatic-command';
NeuCloseRequest.d.ts
import type { NeuCloseReason } from '@neural-ui/core/foundation';
import type { NeuCloseRequest } from '@neural-ui/core/foundation';
// Public declaration (reference only)
export interface NeuCloseRequest {
readonly originalEvent?: Event;
readonly reason: NeuCloseReason;
}
NeuDialogData.d.ts
import type { NeuDialogData } from '@neural-ui/core/modal';
// Public declaration (reference only)
export interface NeuDialogData<T = unknown> {
data?: T;
title?: string;
}
NeuDialogLayout.d.ts
import type { NeuDialogLayout } from '@neural-ui/core/modal';
// Public declaration (reference only)
export type NeuDialogLayout = 'auto' | 'viewport';
NeuDialogSize.d.ts
import type { NeuDialogSize } from '@neural-ui/core/modal';
// Public declaration (reference only)
export type NeuDialogSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
Use the supported public tokens listed below. Surrounding layout belongs to your application; validate the result in light and dark modes and narrow containers.
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.