generated:catalog.entry.alert.title
generated:catalog.entry.alert.description
@xngui/components/alert@xngui/components/alertchrome:demo.section
chrome:demo.preview
Heads up
A new version is available for download.
import { Component } from '@angular/core';
import { XAlert } from '@xngui/components/alert';
import { XIcon } from '@xngui/icons';
@Component({
selector: 'app-example',
imports: [XAlert, XIcon],
templateUrl: './alert.component.html',
})
export class ExampleComponent {}
chrome:demo.events.title
chrome:demo.events.empty
chrome:demo.api.title
x-alert
chrome:demo.api.col.property
chrome:demo.api.col.type
chrome:demo.api.col.default
chrome:demo.api.col.description
statusXStatus'info'Semantic tone — drives color and host `role`.
sizeXSize—Visual size tier — falls back to XConfigService when unset.
densityXDensity—Spacing offsets — orthogonal to `size`; falls back to XConfigService when unset.
titlestring—Optional heading above the default body slot.
dismissiblebooleanfalseShows a dismiss button on the trailing edge.
dismissLabelstring—`aria-label` for the dismiss button — falls back to the `alert.dismiss` i18n key.