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.
Supplement the header navigation with a secondary entry-point, providing access to additional features in your application.
next.design-system.post.ch/?path=/docs/87ceabbb-f552-46eb-8a47-4d84e7f8cef0--docs&story=Default#87ceabbb-f552-46eb-8a47-4d84e7f8cef0--default
/?path=/story/87ceabbb-f552-46eb-8a47-4d84e7f8cef0--default&full=true
<div class="subnavigation palette-default"> <div class="container container-fluid-xs container-fluid-sm"> <ul class="subnavigation-list"> <li class="subnavigation-item"> <a href="#" class="subnavigation-link active"> Navitem active </a> </li> <li class="subnavigation-item"> <a href="#" class="subnavigation-link"> Navitem default </a> </li> <li class="subnavigation-item"> <a href="#" class="subnavigation-link"> Navitem default </a> </li> </ul> </div> </div>
Make sure the @swisspost/design-system-styles
package is already present in your project or follow the installation guidelines.
To import all Design System styles:
@use '@swisspost/design-system-styles/post-compact.scss';
To import only the styles required for this component:
@use '@swisspost/design-system-styles/basics.scss'; @use '@swisspost/design-system-styles/components/subnavigation.scss';
To change the color scheme of the component, simply use one of our predefined classes.
For more information, see the available palette classes.
next.design-system.post.ch/?path=/docs/87ceabbb-f552-46eb-8a47-4d84e7f8cef0--docs&story=Alternative Colors#87ceabbb-f552-46eb-8a47-4d84e7f8cef0--alternative-colors
/?path=/story/87ceabbb-f552-46eb-8a47-4d84e7f8cef0--alternative-colors&full=true
Inside a navigation item, there is the possibilty to add another element like a badge.
next.design-system.post.ch/?path=/docs/87ceabbb-f552-46eb-8a47-4d84e7f8cef0--docs&story=Badges#87ceabbb-f552-46eb-8a47-4d84e7f8cef0--badges
/?path=/story/87ceabbb-f552-46eb-8a47-4d84e7f8cef0--badges&full=true