Components
Dialog
hlm-dialog wraps a trigger button and a hlm-dialog-content panel. The panel is declared with *hlmDialogPortal, so it is only created when the dialog opens.
<hlm-dialog>
<button hlmBtn hlmDialogTrigger variant="outline">Open dialog</button>
<hlm-dialog-content *hlmDialogPortal="let ctx">
<hlm-dialog-header>
<h3 hlmDialogTitle>Edit profile</h3>
<p hlmDialogDescription>Make changes to your profile, then save.</p>
</hlm-dialog-header>
<div class="flex flex-col gap-1.5 py-2">
<label hlmLabel for="dialog-name">Name</label>
<input hlmInput id="dialog-name" placeholder="Sam Rivera" />
</div>
<hlm-dialog-footer>
<button hlmBtn variant="outline" hlmDialogClose>Cancel</button>
<button hlmBtn hlmDialogClose>Save</button>
</hlm-dialog-footer>
</hlm-dialog-content>
</hlm-dialog>The dialog is built on the brain dialog. On the web it opens in an Angular CDK overlay, and in the native app it opens as the platform's dialog, with the name field inside it. See Native elements. It closes with Escape, with a hlmDialogClose button, or with the built-in close button.