packages/components/layout/eui-app/eui-app-sidebar/sidebar-header/sidebar-header.component.ts
Container component for the sidebar header area, typically containing branding, logo, or user profile elements. Automatically registers with EuiAppShellService to calculate and set CSS variables for proper layout spacing. Manages the --eui-app-sidebar-header-height CSS variable to coordinate vertical positioning of sidebar content. Content is projected via ng-content allowing flexible header composition.
Example :<!-- Sidebar header with user profile -->
<eui-app>
<eui-app-sidebar>
<eui-app-sidebar-header>
<eui-app-sidebar-header-user-profile
(toggle)="onSidebarProfileToggle($event)"
[hasProfileDrawer]="true">
</eui-app-sidebar-header-user-profile>
</eui-app-sidebar-header>
</eui-app-sidebar>
</eui-app>
| encapsulation | ViewEncapsulation.None |
| selector | eui-app-sidebar-header |
| template | |
Properties |
HostBindings |
| class |
Type : string
|
Default value : 'eui-app-sidebar-header'
|
| class |
Type : string
|
Default value : 'eui-app-sidebar-header'
|
Decorators :
@HostBinding()
|