DSM component containers help you group multiple component implementations across design and development. This allows you to create centralized component documentation and ensure different implementations are in sync.
For example, you can use a component container to group multiple design assets—i.e., Sketch symbols—that represent component variants. You can also add a React coded component to the same component container, and the DSM documentation site will present the design and code side by side.
Creating a component container is as simple as creating a component page in your DSM documentation site. These pages can be at the Component category level, or they can be nested within a folder.
To create a component page:
Sign in to the DSM documentation site and open your design system.
At the top of the page, click Components.
In the left-hand navigation, select (or create) a category or folder.
Within the category or folder, click Add Page.
Name the page and press Enter.
You've now created a component page, which serves as a component container.
There are typically multiple design instances of the same coded component in a UI toolkit, representing different component variants (for example, a button might have a hover state and a click state). Component pages enable you to easily group multiple instances of one component.