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 version is no longer actively maintained and has reached End-of-Life (EOL). For new and ongoing projects, please refer to the latest Design System version.
Display small pieces of information with which users can interact.
<div class="chip chip-filter"> <input class="chip-filter-input" id="chip-example--default" name="chip-example--default" type="checkbox" /> <label class="chip-filter-label" for="chip-example--default"> <span class="chip-text">Insigno</span> </label> </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/index.scss';
To import only the styles required for this component:
@use '@swisspost/design-system-styles/basics.scss'; @use '@swisspost/design-system-styles/components/chip.scss';
Filter chips provide a simple means to refine content or search results based on specific attributes. They are personalized checkboxes, allowing users to toggle them to filter content effectively.
Alternatively, filter chips may be used with radio inputs when a single filter selection is needed.
Dismissible chips represent pieces of information entered by a user. Each chip includes a close button, enabling users to conveniently remove them from view.
It's important to note that the close icon lacks visible text. Therefore, it's imperative to include a visually hidden label to ensure accessibility for users relying on assistive technologies.