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.
Use flexbox alignment utilities to vertically and horizontally align columns.
Change the vertical alignment with any of the responsive align-items-*
classes.
Or, change the alignment of each column individually with any of the responsive align-self-*
classes.
next.design-system.post.ch/?path=/docs/cd70f48f-6308-4ec8-a8c6-982bd72c855c--docs&story=Vertical Example#cd70f48f-6308-4ec8-a8c6-982bd72c855c--vertical-example
/?path=/story/cd70f48f-6308-4ec8-a8c6-982bd72c855c--vertical-example&full=true
<div class="container"> <div class="row align-items-start"> <div class="col">Item 1</div> <div class="col">Item 2</div> <div class="col">Item 3</div> </div> </div>
Change the horizontal alignment with any of the responsive justify-content-*
classes.
next.design-system.post.ch/?path=/docs/cd70f48f-6308-4ec8-a8c6-982bd72c855c--docs&story=Horizontal Example#cd70f48f-6308-4ec8-a8c6-982bd72c855c--horizontal-example
/?path=/story/cd70f48f-6308-4ec8-a8c6-982bd72c855c--horizontal-example&full=true
If more than 12 columns are placed within a single row, each group of extra columns will, as one unit, wrap onto a new line.
next.design-system.post.ch/?path=/docs/cd70f48f-6308-4ec8-a8c6-982bd72c855c--docs&story=Column Wrapping#cd70f48f-6308-4ec8-a8c6-982bd72c855c--column-wrapping
/?path=/story/cd70f48f-6308-4ec8-a8c6-982bd72c855c--column-wrapping&full=true
Breaking columns to a new line in flexbox requires a small hack: add an element with width: 100%
wherever you want to wrap your columns to a new line. Normally this is accomplished with multiple .rows
, but not every implementation method can account for this.
next.design-system.post.ch/?path=/docs/cd70f48f-6308-4ec8-a8c6-982bd72c855c--docs&story=Column Break Example#cd70f48f-6308-4ec8-a8c6-982bd72c855c--column-break-example
/?path=/story/cd70f48f-6308-4ec8-a8c6-982bd72c855c--column-break-example&full=true
Use .order-
classes for controlling the visual order of your content. These classes are responsive, so you can set the order by breakpoint (e.g. .order-1
.order-md-2
). Includes support for 1 through 5 across all seven grid tiers. If you need more .order-*
classes.
next.design-system.post.ch/?path=/docs/cd70f48f-6308-4ec8-a8c6-982bd72c855c--docs&story=Order Example#cd70f48f-6308-4ec8-a8c6-982bd72c855c--order-example
/?path=/story/cd70f48f-6308-4ec8-a8c6-982bd72c855c--order-example&full=true
There are also responsive .order-first
and .order-last
classes that change the order of an element by applying order: -1
and order: 6
, respectively. These classes can also be intermixed with the numbered .order-*
classes as needed.
next.design-system.post.ch/?path=/docs/cd70f48f-6308-4ec8-a8c6-982bd72c855c--docs&story=Order Max Example#cd70f48f-6308-4ec8-a8c6-982bd72c855c--order-max-example
/?path=/story/cd70f48f-6308-4ec8-a8c6-982bd72c855c--order-max-example&full=true
You can offset grid columns in two ways: our responsive .offset-
grid classes and our margin utilities. Grid classes are sized to match columns while margins are more useful for quick layouts where the width of the offset is variable.
Move columns to the right using .offset-*
classes. These classes increase the left margin of a column by * columns. For example, .offset-4
moves .col-1
over four columns. You can also apply the offset above a certain breakpoint with the breakpoint infixes e.g. offset-md-4
.
next.design-system.post.ch/?path=/docs/cd70f48f-6308-4ec8-a8c6-982bd72c855c--docs&story=Offset Example#cd70f48f-6308-4ec8-a8c6-982bd72c855c--offset-example
/?path=/story/cd70f48f-6308-4ec8-a8c6-982bd72c855c--offset-example&full=true
In addition to column clearing at responsive breakpoints, you may need to reset offsets.
next.design-system.post.ch/?path=/docs/cd70f48f-6308-4ec8-a8c6-982bd72c855c--docs&story=Reset Offset Example#cd70f48f-6308-4ec8-a8c6-982bd72c855c--reset-offset-example
/?path=/story/cd70f48f-6308-4ec8-a8c6-982bd72c855c--reset-offset-example&full=true
Resize the browser window to see changes.