packages/components/layout/eui-header/header-app/header-app-subtitle.component.ts
Custom subtitle component for use within eui-header-app, allowing HTML content projection for application subtitle. Automatically extracts projected content and synchronizes it with EuiAppShellService state for global access. Provides an alternative to the appSubTitle input property when rich HTML formatting or custom elements are needed. Content is projected via ng-content allowing flexible subtitle composition with links, icons, or formatted text.
Example :<!-- Application subtitle in header -->
<eui-app>
<eui-app-header>
<eui-header>
<eui-header-app>
<eui-header-app-name><strong>My</strong>Workplace</eui-header-app-name>
<eui-header-app-subtitle>Dashboard</eui-header-app-subtitle>
</eui-header-app>
</eui-header>
</eui-app-header>
</eui-app>
| encapsulation | ViewEncapsulation.None |
| selector | eui-header-app-subtitle |
| template | |
Properties |
HostBindings |
| class |
Type : string
|
Default value : 'eui-header-app-subtitle'
|
| string |
Type : string
|
Default value : 'eui-header-app-subtitle'
|
Decorators :
@HostBinding('class')
|