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 styling package, including theming for Bootstrap and ng-bootstrap components.
| Version | Bootstrap | Angular | ng-Bootstrap |
|---|---|---|---|
| 9.x | 5.3 | N/A | >=17.0.0 < 21.0.0 |
| 8.x | 5.3 | 18.x | 17.x |
| 7.x | 5.3 | 16.x || 17.x | 15.x || 16.x |
| 6.4.0 - 6.6.5 | 5.3 | 16.x | 15.x |
| 6.2.0 - 6.3.0 | 5.2 | 15.x | 15.x |
| 5.x | 5.1 | 14.x | 12.x |
npm install @swisspost/design-system-styles
Import one of our stylesheets into your project (for example into your /src/styles.scss file).
@use '@swisspost/design-system-styles/<bundle-name>.<extension>';
| <bundle-name> | <extension> | Description |
|---|---|---|
index | css, scss | everything for internet facing applications |
intranet | css, scss | everything for internal applications |
basics | css, scss | atomic styles for font, buttons, lists, etc. (no component styles) |
Use the SCSS core for your custom styles and make sure you're always using the most up to date definitions:
NOTE: The core file itself, does not produce any CSS output. It only contains variables, functions and mixins.
@use '@swisspost/design-system-styles/core' as post; .my-component { background-color: post.$yellow; // #FFCC00 }