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.
Version | React |
---|---|
9.x | 18.x |
npm install @swisspost/design-system-components-react
Import the packages global styles. They are required for the components to work properly.
@use '@swisspost/design-system-components-react/dist/post-components.css';
Importing the components to your project.
// app.tsx import { PostIcon } from '@swisspost/design-system-components-react'; function App() { return ( <> <PostIcon name="iconName"></PostIcon> </> ); }
@swisspost/design-system-components/post-components/post-components.css
@swisspost/design-system-components-angular/post-components.css
@swisspost/design-system-components-react/post-components.css
(by @oliverschuerch with #5165)[for]="$id"
). The checks are now delayed to work around this issue. (by @gfellerph with #3775)post-collapsible-trigger
component to properly handle the role, ARIA attributes, and event listeners for elements that toggle a post-collapsible
. (by @alizedebray with #3209)heading-level
property on the post-accordion
component to set the heading level of all post-accordion-item
children at once. (by @alizedebray with #3104)Synchronized the versions of the following packages:
This will help understanding the dependencies between these packages at a glance but also means that for the individual pacakges, semver is no longer being used. This enables us also to talk about and document Design System versions as a whole instead of documenting the fragmented versions in a complex lookup table. (by @gfellerph with #2856)