No Preview

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:

  1. Missing Context/Providers: You can use decorators to supply specific contexts or providers, which are sometimes necessary for components to render correctly. For detailed instructions on using decorators, please visit the Decorators documentation.
  2. Misconfigured Webpack or Vite: Verify that Storybook picks up all necessary settings for loaders, plugins, and other relevant parameters. You can find step-by-step guides for configuring Webpack or Vite with Storybook.
  3. Missing Environment Variables: Your Storybook may require specific environment variables to function as intended. You can set up custom environment variables as outlined in the Environment Variables documentation.

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

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.

col
col
col
col
<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>
NameDescriptionDefaultControl
Horizontal gutter (gx)
Sets the horizontal gutter size.
string
-

The .gy-{size} classes can be used to set the vertical gutter width when a .row wraps to new lines.

col
col
col
col
<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>
NameDescriptionDefaultControl
Vertical gutter (gy)
Sets the vertical gutter size.
string
-

The .g-{size} classes can be used to set both the horizontal and vertical gutter widths.

col
col
col
col
<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>
NameDescriptionDefaultControl
General gutter (g)
Sets the general gutter size.
string
-

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)