Dialog
NewA focused space for the next step. Bring forms, details and useful actions into view.
Basic
Control visibility with a two-way binding. Use a modal dialog when a task needs the user's full attention.
Alex Morgan
alex@example.com
DESIGN WORKSPACEYour workspace is up to date.
Template
Use header and footer templates to add identity and actions around your content.
Position
Place dialogs in the center, along an edge or in a corner.
Maximizable
Give content more room with a full-screen view. Restore the original size with the same control.
Long content
The content area scrolls within the available height, keeping the header and footer accessible.
Without modal
Keep the page available while a small companion window stays open. Try the page action while the notes window is visible.
Headless
Replace the entire dialog with your own layout and use the supplied close callback.
Usage and API
Import AvDialog and control its visible model. No service is required.
import { signal } from '@angular/core';
import { AvDialog, AvButton } from 'avero-ui';
// Add AvDialog and AvButton to your component imports.
readonly visible = signal(false);<button avButton (click)="visible.set(true)"
aria-controls="project-dialog" [attr.aria-expanded]="visible()">Open</button>
<av-dialog inputId="project-dialog" header="Project details"
[(visible)]="visible" [modal]="true" [maximizable]="true"
width="640px" [breakpoints]="{ '768px': '90vw' }">
<p>Your content goes here.</p>
<ng-template #footer let-close="close">
<button avButton (click)="close()">Done</button>
</ng-template>
</av-dialog>