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.
Gutters are the spaces between column content in grid elements (e.g., .row
, .col
, .col-*
). They are implemented by applying an inline-padding to each column, along with matching negative margins to offset the padding at the row's edges.
The .gx-{size}
classes can be used to set the horizontal gutters within the columns (.col
) of a .row
.
next.design-system.post.ch/?path=/docs/64b63483-79fa-4e9f-9441-f7d6b2eabae2--docs&story=Horizontal Gutters#64b63483-79fa-4e9f-9441-f7d6b2eabae2--horizontal-gutters
/?path=/story/64b63483-79fa-4e9f-9441-f7d6b2eabae2--horizontal-gutters&full=true
<div class="container"> <div class="row gx-12"> <div class="col">col</div> <div class="col">col</div> <div class="col">col</div> <div class="col">col</div> </div> </div>
The .gy-{size}
classes can be used to set the vertical gutter width when a .row
wraps to new lines.
next.design-system.post.ch/?path=/docs/64b63483-79fa-4e9f-9441-f7d6b2eabae2--docs&story=Vertical Gutters#64b63483-79fa-4e9f-9441-f7d6b2eabae2--vertical-gutters
/?path=/story/64b63483-79fa-4e9f-9441-f7d6b2eabae2--vertical-gutters&full=true
<div class="container"> <div class="row gy-32"> <div class="col-6">col</div> <div class="col-6">col</div> <div class="col-6">col</div> <div class="col-6">col</div> </div> </div>
The .g-{size}
classes can be used to set both the horizontal and vertical gutter widths.
next.design-system.post.ch/?path=/docs/64b63483-79fa-4e9f-9441-f7d6b2eabae2--docs&story=General Gutters#64b63483-79fa-4e9f-9441-f7d6b2eabae2--general-gutters
/?path=/story/64b63483-79fa-4e9f-9441-f7d6b2eabae2--general-gutters&full=true
<div class="container"> <div class="row g-64"> <div class="col-6">col</div> <div class="col-6">col</div> <div class="col-6">col</div> <div class="col-6">col</div> </div> </div>
Gutters can be eliminated by applying the classes .g-0
, .gx-0
, or .gy-0
, which remove all gutters, horizontal gutters, or vertical gutters, respectively.
Breakpoint-specific classes allow precise control of horizontal, vertical, and general gutters at various screen sizes.
.gx-{breakpoint}-{size}
(e.g. gx-lg-24
).gy-{breakpoint}-{size}
(e.g. gy-sm-32
).g-{breakpoint}-{size}
(e.g. g-md-12
)