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:
This is a pre-release version and is not production ready. For new and ongoing projects, please refer to the latest Design System version.
Use Angular Update Guide to update Angular to version 18
npm install @ng-bootstrap/ng-bootstrap@17
Update Design System style package to version 8:
npm install @swisspost/design-system-styles@8
For there are no other breaking changes in this version.
Use https://angular.dev/update-guide to update Angular to version 19
If used within your project, upgrade PrimeNG to version 19:
npm install primeng@19
Update Design System styles and components packages to version 9:
npm install @swisspost/design-system-styles@9
npm install
@swisspost/design-system-components-angular@9
The post-tooltip now has its own post-tooltip-trigger,
meaning that the attribute data-tooltip-target="" is no longer
effective.
breaking
Instead of using the attribute, you should now wrap your target in the
post-tooltip-trigger component.
The default value of the arrow property for the
post-tooltip component has changed to false, meaning
that tooltips don't display arrows by default anymore.
breaking
If you want to add an arrow to your tooltip, use the
arrow="true" property on the component.
The PrimeNGConfig has been replaced by PrimeNG and
the initial configuration is now done via the
providePrimeNG provider during startup.
See the PrimeNg migration guide and PrimeNg Styles package documentation for more detailed information.
This is the last major release that supports bootstrap and @ng-bootstrap/ng-bootstrap. Support for these packages will be dropped with v10. Long term support for v9 will be active until the end of 2025 and will receive critical bugfixes.
Bootstrap will be removed as a dependency for the Design System. For easy upgrades in the future, the component structure and class names will remain the same, only the styles in the background will be switched to the new token system.
Certain utility classes will no longer be available from the Design System due to this change. However, projects that need them can add the bootstrap library as their dependency and conditionally import the needed files. More information on this change will be detailed in the migration guide for v10.
Any ng-bootstrap components will be replaced by web components and available for Angular users with the @swisspost/design-system-components-angular package. With this change, we will limit our dependency on Angular to the components-angular package which allows us to ship Angular upgrades much faster in the future.
Version 10 comes with a new look and cleaner codebase โ and yes, a few breaking changes, all for good reason.
Weโve completely refreshed the design and reworked how components are built. Bootstrap and Ng-Bootstrap have been replaced by Web Standards compliant components, which means the Design System works across any framework (Angular, React, or plain HTML).
We've reworked utility classes to be
pixel-based and more intuitive โ for example, .p-16 now clearly
means "16px padding", instead of guessing what .p-3 stood for. Weโve also
simplified things overall: fewer breakpoints, fewer font-size classes, and a more
consistent color palette (no more purple or coral buttons ๐จ).
Components are now tokenized, so you can implement dark mode and easily adjust themes without rewriting CSS. Want to see this in action? Check the Palette documentation and switch to dark mode or the Cargo theme.
Oh, and yes โ thereโs a brand-new icon set too ๐ผ๏ธ.
Update Design System styles and components packages to version 10 by running these two
commands in your project root:
npm install @swisspost/design-system-styles@10
npm install
@swisspost/design-system-components-angular@10
๐ก Many changes are automatically handled by the migration scripts. Each ๐ช symbol means that automatic migration rules can handle the changes, but you should still verify the results manually.
As part of the latest migration, Bootstrap and Ng-Bootstrap have been fully removed from the design system. This means that any variables, classes, mixins, or utilities originating from Bootstrap and all components from Ng-Bootstrap are no longer available.
Common Bootstrap features โ such as the grid system (columns) and most utility
classes โ have been internalized into the design system. You can continue using them
through the design system without needing Bootstrap.
If you encounter any broken styles or issues after upgrading, you have two options:
Please review your components and styles to ensure compatibility.
You're almost done! After completing the migration steps above, you can now remove all remaining references to Bootstrap and Ng-Bootstrap from your project. The steps below help ensure that no deprecated imports or dependencies remain.
@import 'bootstrap/...'; and remove them.
import { ... } from '@ng-bootstrap/ng-bootstrap'; and delete them.
๐ก Note: Your project might also use Ng-Bootstrap components that were
not previously styled by the Design System. In that case, verify whether an
equivalent component exists in the Design System. If no equivalent is available
yet, you may need to keep Ng-Bootstrap temporarily until a
replacement is provided.
npm uninstall bootstrap @ng-bootstrap/ng-bootstrap