Documentation
Feedback
Guides
VTEX IO Apps

VTEX IO Apps
Deprecated
Categories Highlights

{"base64":"  ","img":{"width":73,"height":20,"type":"svg","mime":"image/svg+xml","wUnits":"px","hUnits":"px","length":927,"url":"https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/images/vtex-store-components-categorieshighlights-0.png"}}

Warning

The Categories Highlights has been deprecated. Despite this, support for it is still granted.

Categories Highlights is a banner which shows two or four categories in a highlighted position in the store. This Component can be imported and used by any VTEX App.

📢 Disclaimer

Don't fork this project, use, contribute, or open issue with your feature request.

Usage

You should follow the usage instruction in the main README.

To import it into your code:


_10
import CategoriesHighlights from 'vtex.store-components/CategoriesHighlights'

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


_10
<CategoriesHighlights
_10
categoriesHighlighted={
_10
categoryX: { name: 'X', image: 'Image X' },
_10
categoryY: { name: 'Y', image: 'Image Y' }
_10
}
_10
/>

Configuration

Prop nameTypeDescriptionDefault value
categoriesHighlightedObject!Categories highlighted in the department{}
showCategoriesHighlightedBoolean!Flag which indicates if the categories highlighted should be displayed or notfalse
quantityOfItemsNumber!Number of categories highlighted to be displayed (it should be 2 or 4)2
boxShapeString!Shape of the card box which wraps each category (it should be 'squared' or 'rectangular')squared

Category Highlight:

Prop nameTypeDescription
nameString!Name of the category
imageStringImage of the category

Styles API

This app provides some CSS classes as an API for style customization. You should follow the Styles API instruction in the main README.

CSS namespaces

Below, we describe the namespaces that are defined in the categories highlights.

Class nameDescriptionComponent Source
squaredCategoriesHighlightsThe properties to be applied to a squared containerindex
rectangularCategoriesHighlightsThe properties to be applied to a rectangular containerindex
rectangularCardThe properties to be applied to a rectangular card containerCategoryCard
squaredCardThe properties to be applied to a squared card containerCategoryCard
squaredCardImageThe properties to be applied to the image inside a squared cardCategoryCard
rectangularCardImageThe properties to be applied to the image inside a rectangular cardCategoryCard
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Was this helpful?
Yes
No
Suggest edits (Github)
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page