Sorry, but you either have no stories or none are selected somehow.
If the problem persists, check the browser console, or the terminal you've run Storybook from.
The component failed to render properly, likely due to a configuration issue in Storybook. Here are some common causes and how you can address them:
The intranet header is an Angular component, as such it only works within Angular projects.
The Header Angular component for internal usage.
| Version | Bootstrap | Angular | Ng-Bootstrap |
|---|---|---|---|
| 9.x | 5.3 | 18.x || 19.x || 20.x | 17.x || 18.x || 19.x |
| 8.x | 5.3 | 18.x | 17.x |
| 7.x | 5.3 | 16.x || 17.x | 15.x || 16.x |
| 5.x | 5.2 | 16.x | 15.x |
| 4.x | 5.2 | 15.x | 14.x |
| 3.x | 4.x | 14.x | 13.x |
npm install @swisspost/design-system-intranet-header
app.module.ts, import SwissPostIntranetHeaderModule and add it to the imports array property.// Other imports .... import { SwissPostIntranetHeaderModule } from '@swisspost/design-system-intranet-header'; @NgModule({ imports: [SwissPostIntranetHeaderModule], }) export class AppModule {}
app.component.html, create a section container and assign it the CSS classes that best suit your desired layout:| Class | Condition |
|---|---|
layout-container | Always |
header-big | To use the header with a navigation bar |
header-small | To use the header without a navigation bar |
with-searchbar | To use the header with a search bar |
In the layout container, add the post-intranet-header component and configure it as needed using the properties described below.
Add any other content in the container below the header, wrapped in an element with class header-margin.