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.
Responsive design and development ensures that a website or an application provides an optimal viewing experience across different devices, from large desktop computers to mobile phones. Nowadays, users access the web on a variety of screen sizes and resolutions, so it's crucial for websites to adapt seamlessly to any screen.
Grids should use percentage-based widths for elements rather than fixed pixel values, which allows content to adapt to the user's screen size. For more details, read our grid system docs.
next.design-system.post.ch/?path=/docs/51785576-8553-4909-8827-fd97de4f874e--docs&story=Fluid Layout#51785576-8553-4909-8827-fd97de4f874e--fluid-layout
/?path=/story/51785576-8553-4909-8827-fd97de4f874e--fluid-layout&full=true
next.design-system.post.ch/?path=/docs/51785576-8553-4909-8827-fd97de4f874e--docs&story=Not Fluid Layout#51785576-8553-4909-8827-fd97de4f874e--not-fluid-layout
/?path=/story/51785576-8553-4909-8827-fd97de4f874e--not-fluid-layout&full=true
Media queries are CSS rules that apply specific styles based on a device's width or height. Our design system defines breakpoints from mobile to large desktop and comes with a full range of responsive helper classes and mixins. For more details on that, read our breakpoint docs.
Breakpoints are used to adapt the display of contents in a webpage depending on the screen size to maintain usability.
next.design-system.post.ch/?path=/docs/51785576-8553-4909-8827-fd97de4f874e--docs&story=Breakpoints Layout#51785576-8553-4909-8827-fd97de4f874e--breakpoints-layout
/?path=/story/51785576-8553-4909-8827-fd97de4f874e--breakpoints-layout&full=true
This card is responsive. On larger screens, the button is at the right of this content because there is enough space for it. On tablet, the button moves under the content to improve readability. On mobile, each card spans the whole width of the screen.
This card is responsive. On larger screens, the button is at the right of this content because there is enough space for it. On tablet, the button moves under the content to improve readability. On mobile, each card spans the whole width of the screen.
next.design-system.post.ch/?path=/docs/51785576-8553-4909-8827-fd97de4f874e--docs&story=No Breakpoints Layout#51785576-8553-4909-8827-fd97de4f874e--no-breakpoints-layout
/?path=/story/51785576-8553-4909-8827-fd97de4f874e--no-breakpoints-layout&full=true
This card is not responsive. The button is always at the right of this content, not matter the screen size. On mobile or tablet, this text is harder to read.
This card is not responsive. The button is always at the right of this content, not matter the screen size. On mobile or tablet, this text is harder to read.
In the design system, responsive typography is achieved by using CSS variables that adjust font sizes based on the viewport size. This allows for dynamic scaling of text accross devices. By using the correct semantic elements (such as headings, paragraphs, etc.), content adapts to maintain a consistent and responsive layout. For more details, read our typography docs.
Responsive images use the srcset
attribute to load different image sizes based on screen size and resolution, which optimizes loading times and data usage. This overall will improve a website's performance as it reduces unnecessary bandwidth use on mobile devices.
More informations on srcset
can be found on the mdn web docs.
<img src="small.jpg" srcset="medium.jpg 1000w, large.jpg 2000w" alt="Example of a responsive image">
All components in our design system are fully responsive. From the header, which seamlessly transitions between mobile and desktop versions, to smaller components with dynamic spacing and font sizes that adjust based on the viewport, our system ensures your website delivers an optimized, responsive experience across all devices.