Documentation
Feedback
Guides
VTEX IO Apps

VTEX IO Apps
Logo
vtex.store-components
Version: 3.150.0
Latest version: 3.178.1

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.1.

Logo is a VTEX block responsible for displaying an image logo for the store header.

{"base64":"  ","img":{"width":2850,"height":1576,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":1352672,"url":"https://user-images.githubusercontent.com/52087100/70247921-f1d43a80-1758-11ea-853e-065dfed06c73.png"}}

Configuration

  1. Import the vtex.store-component app to your theme's dependencies in the manifest.json;

_10
"dependencies: {
_10
"vtex.store-components": "3.x"
_10
}

  1. Add the logo block into your Header. For example:

_21
"header.full": {
_21
"blocks": [
_21
"login",
_21
"minicart",
_21
"logo",
_21
"search-bar",
_21
"menu-link",
_21
"telemarketing",
_21
"category-menu"
_21
]
_21
},
_21
_21
"logo": {
_21
"props": {
_21
"width": 132,
_21
"height": 32,
_21
"mobileWidth": 90,
_21
"mobileHeight": 32
_21
}
_21
}
_21
}

Prop nameTypeDescriptionDefault value
titleString!The image alt descriptionVTEX logo
colorStringThe image fill color#F71963
showLabelBooleanSet the label visibilitytrue
widthNumberThe logo image width493
heightNumberThe logo image height177
urlStringThe image urlundefined
hrefStringImage linkundefined
classesCustomCSSClassesUsed 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

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
sizeDesktop
sizeMobile
logoLink
logoContainer
logoImage
See also
Vtex.store Components
VTEX IO Apps
VTEX App Store
VTEX IO Apps