SPECIAL PRICING
BLACK FRIDAY SALE
PERSONAL $99
TEAM $349
ENDS DEC 1
GET IT NOW

Dialog

Angular Material Dialog displays content in a modal window that requires user interaction. It can be used for alerts, confirmations, or collecting user input. The panel floats above a dimmed backdrop and holds a title, a body that scrolls once the content grows, and a row of actions along the bottom. BuilderKit restyles the surface, the backdrop and the action row so the dialog matches the rest of the design system.

Prefer the BuilderKit dialog
The BuilderKit dialog is the recommended dialog for new work. It is built on the CDK, ships as source you own, and composes from header, body and footer parts. Use Angular Material Dialog when you need its service based API or already depend on it.

On small screens the same content often reads better sliding up from the bottom edge, which is what the bottom sheet component does.

Example

A button that opens a dialog built from matDialogTitle, mat-dialog-content and mat-dialog-actions.

<button matButton (click)="openDialog()">Open dialog</button>

The content area extends through the dialog padding so its scrollbar sits on the dialog edge and focus rings are not clipped. The padding comes from the --dialog-padding variable; change it there rather than with a padding class on the dialog component, so the content keeps up.

Confirmation dialog

A confirmation dialog is a narrow panel with a short question, a quiet cancel action and an accented action that carries the decision.

<h2 matDialogTitle>Delete account</h2>
<mat-dialog-content>
This removes the account and everything inside it. Anyone still working
in it loses access right away.
</mat-dialog-content>
<mat-dialog-actions align="end">
<button matButton matDialogClose>Cancel</button>
<button class="primary" matButton [matDialogClose]="true">Delete</button>
</mat-dialog-actions>

Dialog with a form

A form dialog keeps the fields in the scrolling body while the actions stay pinned under them, so the buttons never drift out of reach.

<h2 matDialogTitle>Edit profile</h2>
<mat-dialog-content>
<div class="flex flex-col gap-y-4 py-2">
<mat-form-field class="w-full" subscriptSizing="dynamic">
<mat-label>Full name</mat-label>
<input matInput value="Ronald Richards"/>
</mat-form-field>

<mat-form-field class="w-full" subscriptSizing="dynamic">
<mat-label>Email</mat-label>
<input matInput value="r.richards&#64;example.com"/>
</mat-form-field>
</div>
</mat-dialog-content>
<mat-dialog-actions align="end">
<button matButton matDialogClose>Cancel</button>
<button class="primary" matButton [matDialogClose]="true">Save</button>
</mat-dialog-actions>