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.
Elevation uses box shadows to give the impression of a distance between two elements along the z-axis.
The higher the elevation, the larger and softer the shadow, expressing a greater distance between an element and the one behind it.
.elevation-none
post.$elevation-none
.elevation-100
post.$elevation-100
.elevation-200
post.$elevation-200
.elevation-300
post.$elevation-300
.elevation-400
post.$elevation-400
.elevation-500
post.$elevation-500
The easiest way to add an elevation to an element is to apply an elevation class to it.
next.design-system.post.ch/?path=/docs/cfdf83ff-efa7-4b3c-ac91-6898c4f88701--docs&story=Default#cfdf83ff-efa7-4b3c-ac91-6898c4f88701--default
/?path=/story/cfdf83ff-efa7-4b3c-ac91-6898c4f88701--default&full=true
<div class="w-half rounded p-16 elevation-500">I'm elevated!</div>
Import the elevation variables from the Design System Styles package from the core
sass file with @use
. This way, the elevation variables are scoped and don't mix with your own variables.
@use '../../../../node_modules/@swisspost/design-system-styles/core' as post; .elevated-element { box-shadow: post.$elevation-500; }