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 version is no longer actively maintained and has reached End-of-Life (EOL). For new and ongoing projects, please refer to the latest Design System version.

Sizing

Sizing utility classes are used to influence the height and width of elements to which they are applied.

Height and width can be set using h-* and w-* prefixes, max-height and max-width can be set using prefixes mh-* and mw-* .

Bootstrap offers sizing classes with the suffixes bellow. They allow you to set a height / width as a percentage of the parent element (see Bootstrap Sizing for reference).

  • *-25
  • *-50
  • *-75
  • *-100
<div class="sizing-example"> <div class="d-flex p-regular gap-regular" style="height: 150px"> <div class="flex-fill"> <div class="content h-100 w-25 "></div> </div> </div> </div>
NameDescriptionDefaultControl
height
Set the height of the rectangle
string
-
width
Set the width of the rectangle
string
-
max-height
Set the maximum height of the rectangle
string
-
max-width
Set the maximum width of the rectangle
string
-

For width, we offer additionally .w-{breakpoint}-{size} classes (e.g. w-md-100) so that you can size only for some specific breakpoints.

See Full-width button for a practical example.

Post-Sizes

Post sizes can be used as suffixes in the same way. To find out which size name to use, see the "Size name in classes" column in the reference table above or use the "Example Post-Sizes" below.

Sizing variables are deprecated

The current set of the post-specific sizing variables is deprecated in favour of a new naming system that is consistent with the Design. For further information, please read the discussion on sizing variables on GitHub and have a look at the implementation in Figma.

There is a new solution with updated naming system up coming for spacing sizes.

$hair: "1px"; $line: "2px"; $micro: "0.25rem"; $mini: "0.5rem"; $small-regular: "0.75rem"; $regular: "1rem"; $small-large: "1.25rem"; $large: "1.5rem"; $big: "2rem"; $bigger-big: "2.5rem"; $small-huge: "3rem"; $huge: "3.5rem"; $small-giant: "4.5rem"; $giant: "5rem"; $bigger-giant: "7rem";
NameDescriptionDefaultControl
height
Set the height of the rectangle
string
-
width
Set the width of the rectangle
string
-
max-height
Set the maximum height of the rectangle
string
-
max-width
Set the maximum width of the rectangle
string
-

There is the possibility to set the width and height relative to the viewport.

  • min-vh-100
  • min-vw-100
  • vh-100
  • vw-100