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.
The .section
class is used to create a container that ensures content does not exceed a maximum width of 1920px (Full HD), providing a consistent layout across different screen sizes.
The component does not add any paddings, so make sure you're using a .container
element along with some of our spacing utility classes inside to ensure your content gets padded correctly across all viewports.
next.design-system.post.ch/?path=/docs/49b036fc-5c54-46da-b6d1-081f0c731b05--docs&story=Default#49b036fc-5c54-46da-b6d1-081f0c731b05--default
/?path=/story/49b036fc-5c54-46da-b6d1-081f0c731b05--default&full=true
This section demonstrates a foundational layout component with proper spacing and container styling. Sections help in organizing content into distinct visual blocks, improving readability and structure. The container ensures consistent horizontal padding and maximum width across different screen sizes.
<section class="section palette-brand"> <div class="container py-64"> <h2>Title</h2> <p> This section demonstrates a foundational layout component with proper spacing and container styling. Sections help in organizing content into distinct visual blocks, improving readability and structure. The container ensures consistent horizontal padding and maximum width across different screen sizes. </p> </div> </section>
In the example above, the .section
class is making sure, the background-colored container will not be any wider than Full HD, while the inner .container
class is making sure content itself keeps aliged with the rest of the pages content.
Inside the .section
element you can use some helper classes to align elements either with the edges of the .section
or the .container
element.
next.design-system.post.ch/?path=/docs/49b036fc-5c54-46da-b6d1-081f0c731b05--docs&story=Alignment#49b036fc-5c54-46da-b6d1-081f0c731b05--alignment
/?path=/story/49b036fc-5c54-46da-b6d1-081f0c731b05--alignment&full=true