packages/components/eui-alert/eui-alert-title.component.ts
Title subcomponent for eui-alert that displays a prominent heading above the alert message. Provides semantic structure and visual hierarchy within alert messages. Content is projected via ng-content, allowing text or inline elements as title content. Automatically styled to match the parent alert's variant and visual design. Must be used as a direct child of eui-alert component for proper styling and structure.
<eui-alert euiSuccess>
<eui-alert-title>Success</eui-alert-title>
Your operation completed successfully.
</eui-alert><eui-alert euiWarning>
<eui-alert-title>Warning</eui-alert-title>
Please review the following issues before proceeding.
</eui-alert>| selector | eui-alert-title |
| template | |
| styleUrl | eui-alert-title.scss |
Properties |
HostBindings |
| class |
Type : string
|
Default value : 'eui-alert-title'
|
|
Computes and returns the CSS classes for the label title component based on its current state. |
| class |
Type : string
|
Default value : 'eui-alert-title'
|
Decorators :
@HostBinding('class')
|
|
Computes and returns the CSS classes for the label title component based on its current state. |