Container
A container divides content into meaningful sections. It is the fundamental foundation of most of our components.
- Storybook (opens in a new tab)
npm install @sbks/ds-elements
When to use
Section titled “When to use”Use a container in the following cases
-
To group content
-
To display multiple subjects and functions on a screen
-
To create a scannable UI
The container is the area that can hold any content. It is the keystone of widgets, posts, community content, cards, etc…

Behavior
Section titled “Behavior”Easily align content in columns or stack them (or as a grid if there are more elements than columns). Usually, a with defined columns wraps several components.
⚠️ Warning: Important note: Do not use spacing between containers less than –space-4. Find out more about spacing here: Spacing.

Content safe zone
Section titled “Content safe zone”The minimum padding for content elements inside the container is –space-4. Never use smaller.


Background color
Section titled “Background color”The recommended color is white. In exceptional cases, a different color may be used. But it must make sense in the case.

