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
ariaLabel
string
''
[ariaLabel]
Accessible name of the control or region.
backdrop
boolean
true
[backdrop]
Show the sheet backdrop behind the modal surface.
closeLabel
string
'Close'
[closeLabel]
Label for close preview. Translate it for your application.
disableClose
boolean
false
[disableClose]
Prevent automatic Escape/backdrop dismissal; keep an explicit completion action available.
initialFocus
string
'first'
[initialFocus]
Choose the initial focus strategy or selector when the sheet opens.
open
boolean
false
[open]
Application-owned visibility. Apply false when the requested dismissal is accepted.
Requests dismissal with its reason and original event. The application accepts by applying open=false.
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.
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.
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-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-overlay-bg
Inherited theme value used by this component
Shared by other Core consumers; scope the override.
rgba(15, 23, 42, 0.45)
--neu-shadow-lg
Surface or overlay elevation
Shared by other Core consumers; scope the override.