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.
next.design-system.post.ch/?path=/docs/12576d97-52c3-49ec-be7b-6d37728b75f5--docs&story=Default#12576d97-52c3-49ec-be7b-6d37728b75f5--default
/?path=/story/12576d97-52c3-49ec-be7b-6d37728b75f5--default&full=true
<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">Chip</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/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/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.
next.design-system.post.ch/?path=/docs/12576d97-52c3-49ec-be7b-6d37728b75f5--docs&story=Filter Checkbox Chip#12576d97-52c3-49ec-be7b-6d37728b75f5--filter-checkbox-chip
/?path=/story/12576d97-52c3-49ec-be7b-6d37728b75f5--filter-checkbox-chip&full=true
Alternatively, filter chips may be used with radio inputs when a single filter selection is needed.
next.design-system.post.ch/?path=/docs/12576d97-52c3-49ec-be7b-6d37728b75f5--docs&story=Filter Radio Chip#12576d97-52c3-49ec-be7b-6d37728b75f5--filter-radio-chip
/?path=/story/12576d97-52c3-49ec-be7b-6d37728b75f5--filter-radio-chip&full=true
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.
next.design-system.post.ch/?path=/docs/12576d97-52c3-49ec-be7b-6d37728b75f5--docs&story=Dismissible#12576d97-52c3-49ec-be7b-6d37728b75f5--dismissible
/?path=/story/12576d97-52c3-49ec-be7b-6d37728b75f5--dismissible&full=true