The Container block has been deprecated. Despite this, support for it is still granted.

Container is a VTEX component that is used to wrap code, applying custom styles in the process. Is used throughout the apps in the store to apply similar behavior.
This component can be imported and used by any VTEX app.


You should follow the usage instruction in the main README.

To import it into your code:

import { Container } from ''

You can use it in your code like a React component with the jsx tag: <Container>.

<Container className="my-section">
  My content


Prop nameTypeDescription
classNameStringThe tachyons classes to be applied in the container
childrenNodeThe content to be wrapped

Styles API

You should follow the Styles API instruction in the main README.

CSS Namespaces

For now this component does not have any css namespaces.

Did this page help you?