This page is about version 3.150.0 of the app, which is not the most recent version. The latest stable version is 3.178.2.
The ProductName
is a block responsible for displaying the product name along other information such as SKU or brand.

Configuration
- Import the
vtex.store-components
app to your theme's dependencies in themanifest.json
, for example:
_10 "dependencies: {_10 "vtex.store-components": "3.x"_10 }
- Add the
product-name
block to any block belowstore.product
(Product template). For example:
_16 "store.product": {_16 "children": [_16 "flex-layout.row#product",_16 ]_16 },_16 "flex-layout.row#product": {_16 "children": [_16 "product-name"_16 ]_16 },_16 "product-name": {_16 "props": {_16 "showSku": true,_16 "showBrandName": true_16 }_16 },
Prop name | Type | Description | Default value |
---|---|---|---|
showSku | Boolean | Show product SKU | false |
showProductReference | Boolean | Show product reference | false |
showBrandName | Boolean | Show brand name | false |
classes | CustomCSSClasses | Used to override default CSS handles. To better understand how this prop works, we recommend reading about it here. Note that this is only useful if you're using this block as a React component. | undefined |
displayMode | enum | Possible values: linkToProductPage (show the product link associated with its name) or plainText (to show only the product name). | plainText |
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.
CSS Handles |
---|
productNameContainer |
productBrand |
productSku |
productReference |
productNameLoader |
productNameBrandLoader |
productNameSkuLoader |