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:
Use our custom <input type="range" /> for consistent cross-browser styling and
built-in customization.
Create custom range controls with .form-range. The track (the background) and thumb (the value) are both styled to appear the same across browsers.
<label class="form-label" for="4c5a4537-d663-4d2b-9c49-17af95443696--default">Label</label> <input type="range" id="4c5a4537-d663-4d2b-9c49-17af95443696--default" class="form-range" value="50" />
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/form-range.scss'; // required if you use validation feedbacks @use '@swisspost/design-system-styles/components/form-feedback.scss';
The following examples show the different characteristics of the component. These can differ in the type of visualization, the HTML structure, as well as when, how and why they are displayed.
Range inputs have implicit values for min and max (0 and 100 respectively), and snap to integer values by default.
You may specify new values for those using the min, max and step attributes.
5.1
Simply add the classes .is-valid or .is-invalid to the range element to show it in the expected state.
When the component has been validated, don't forget to add a <p class="valid-feedback">...</p> or <p class="invalid-feedback">...</p> element after the range element to explain what went wrong. This enables the user to correct the mistake.
Eraro okazis!