Dialog

A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.

Default

A standard dialog with header, content, and footer. Ideal for forms or quick actions.

Declarative Usage

Control the dialog state using signals and observables. Open the dialog by entering the correct passphrase.

Hint: The secret word is sparta

Closing Methods

Different ways to close the dialog programmatically or via directives.

API Reference

Brain API

Core functionality for managing dialog states and portals.

DirectiveSelectorInputs / Outputs
BrnDialogbrn-dialog
  • state: 'open' | 'closed'
  • role: 'dialog' | 'alertdialog'
  • closed: EventEmitter<any>
BrnDialogTrigger[brnDialogTrigger]Handles opening the dialog on click.

Helm API

Styling components following the spartan/ui design system.

ComponentSelectorDescription
HlmDialogContenthlm-dialog-contentThe main container for the dialog's visual content.
HlmDialogHeaderhlm-dialog-headerStandard header with title and description support.
HlmDialogFooterhlm-dialog-footerAligned container for action buttons.
HlmDialogTitle[hlmDialogTitle]Directive to style the dialog heading.
HlmDialogDescription[hlmDialogDescription]Directive to style the secondary descriptive text.

Installation & Usage

Installation

Imports

Basic Skeleton