> For the complete documentation index, see [llms.txt](https://nzbin.gitbook.io/material-extensions/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nzbin.gitbook.io/material-extensions/main/alert.md).

# Alert

## API reference for Material Extensions Alert

`import { MtxAlertModule } from '@ng-matero/extensions/alert';`

### Directives

#### `MtxAlert`

Selector: `[mtx-alert]`

Exported as: `mtxAlert`

**Properties**

| Name                                                | Description                                             |              |              |            |                                              |
| --------------------------------------------------- | ------------------------------------------------------- | ------------ | ------------ | ---------- | -------------------------------------------- |
| @Input() \`type: 'default' \\                       | 'info' \\                                               | 'success' \\ | 'warning' \\ | 'danger'\` | The alert types. Defaulted to **`default`**. |
| @Input() `isOpen: boolean`                          | Whether alert visible. Defaulted to **`true`**.         |              |              |            |                                              |
| @Input() `dismissible: boolean`                     | Whether displays an inline close button.                |              |              |            |                                              |
| @Input() `elevation: number`                        | The material elevation for alert. Defaulted to **`0`**. |              |              |            |                                              |
| @Output() `closed: EventEmitter<MtxAlertComponent>` | This event fires when alert closed.                     |              |              |            |                                              |
