Container
The Container app exports a simple container block that can be used to wrap other blocks.
Adding the app as a theme dependency in the
manifest.json
file;
Declaring the app's main block in a given theme template or inside another block from the theme.
Block name | Description |
---|---|
| Just a container |
| A container that consumes list context and render the list |
container
and container.list-render
props
container
and container.list-render
propsProp name | Type | Description | Default value |
---|---|---|---|
|
| Indicates if the event should stop propagating to parent elements |
|
|
| The id to be assigned to the component's HTML element | - |
|
| Determines whether the component should be rendered even if it has no children |
|
|
| Determines whether the component should be wrapped with a |
|
|
| The HTML tag to be used as the component element |
|
|
| An object containing information about a VTEX Pixel event to be triggered when the component is clicked | - |
|
| Determines whether the component should be rendered |
|
|
| An object containing additional HTML attributes to be added to the component element | - |
|
| An object containing custom classes to be added to the component element | - |
|
| Determines whether the |
|
|
| Whether to lazily render the component (i.e., render only when it becomes visible on the screen). |
|
|
| Whether to lazily render the images inside this container |
|
The pixelEvent
object
Prop name | Type | Description | Default value |
---|---|---|---|
|
| Event ID responsible for triggering a block that listens to pixelEvent. |
|
|
| Event name responsible for triggering a block that listens to pixelEvent. |
|
container.list-render
props
container.list-render
propsProp name | Type | Description | Default value |
---|---|---|---|
|
| HTML element used to render the items of the list (ex: div, li, etc) |
|
|
| Includes a div that can be used as a visual separator when set to true, remember that the rendered div does not have any default style |
|
Customization
In order to apply CSS customizations in this and other blocks, follow the instructions given in the recipe on [Using CSS Handles for store customization](https://vtex.io/docs/recipes/style/using-css-handles-for-store-customization).
CSS Handles |
---|
|
|
|
|
Last updated