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:
A Card that can be used as a clickable link to other content
The Card button is deprecated and will be removed in a future version.
The <post-icon> component can be used to display all the icons. However you could also use an alternative Method described in the icons documentation
The <post-icon/> component is part of the @swisspost/design-system-components package.
For more information, read the getting started with components guide.
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/index.scss';
To import only the styles required for this component:
@use '@swisspost/design-system-styles/basics.scss'; @use '@swisspost/design-system-styles/components/card.scss'; @use '@swisspost/design-system-styles/components/product-card.scss';
<div class="card card-button " id="card-button42"> <button class="post-card-favourit"> <post-icon class="pi" name="2062"></post-icon> </button> <a href="#" class="card-body d-flex align-items-center"> <post-icon name="1014"></post-icon> <div> <p class="mb-1">Focus</p> <h5 class="font-weight-bold mb-0">Pick@Home</h5> </div> </a> <div></div> </div>
| Name | Description | Default | Control |
|---|---|---|---|
| General | |||
| Focus | The Title of the overarching topic. string | - | |
| Title | The Title displayed on the Button string | - | |
| Icon | The icon that is displayed in the card. number | - | |
| Favourite | Defines whether this card was selected as favourite boolean | - | |
| Backround | You can use the Background classes to color the cards - | - | |