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.

Overflow

Define how a content overflows its container.

This is a long text content that demonstrates how the overflow property works. This paragraph contains several sentences that will help show the different overflow behaviors when the container is too small to contain all the text. It's useful for testing different overflow settings and seeing how they affect the layout and scrolling capabilities of the container element.
<div class="my-container overflow-visible"> <div class="content"> This is a long text content that demonstrates how the overflow property works. This paragraph contains several sentences that will help show the different overflow behaviors when the container is too small to contain all the text. It's useful for testing different overflow settings and seeing how they affect the layout and scrolling capabilities of the container element. </div> </div>
NameDescriptionDefaultControl
General
Overflow
Sets the general overflow of the element.
string
-
Overflow X
Sets the overflow of the x axis of the element.
-
-
Overflow Y
Sets the overflow of the y axis of the element.
-
-

The properties available for the overflow of elements are the following:

  • overflow for the overflow of the content both horizontally and vertically.
  • overflow-x for the overflow of the content horizontally.
  • overflow-y for the overflow of the content vertically.

The values available are the following:

  • visible (default) sets all of the content to be visible and will overflow the container if needed.
  • auto lets the browser decide what to do and will add scrollbar if needed.
  • hidden hides all of the content that would overflow the container, without any scrollbars.
  • scroll does not overflow the content and adds scrollbars to the container.