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 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 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>
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 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.
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";
There is the possibility to set the width and height relative to the viewport.
min-vh-100
min-vw-100
vh-100
vw-100