Documentation
Feedback
Guides
VTEX IO Apps

VTEX IO Apps
Notification
vtex.store-components
Version: 3.150.0
Latest version: 3.178.3

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

Description

Notification is a VTEX component allows you to display a text content in a bar style or inline. This Component can be imported and used by any VTEX app.

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

Table of Contents

Usage

You should follow the usage instruction in the main README.

notification.bar and notification.inline is a block allowed in the [store] interface(https://github.com/vtex-apps/store).

You can use it by adding it to the blocks of your store sections, for example:


_10
"store.home": {
_10
"blocks": [
_10
"notification.bar",
_10
"carousel#home",
_10
"shelf#home"
_10
]
_10
},

Blocks API

When implementing this component as a block, various inner blocks may be available. For now this block does not have any required or optional blocks.

Configuration

Through the Storefront, you can change the Notification's behavior and interface. However, you also can make in your theme app, as Store theme does.

Prop nameTypeDescriptionDefault value
contentStringText to be used in the bar.''
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

Styles API

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

CSS Namespaces

Below, we describe the namespace that are defined in the Notification.

Class nameDescriptionComponent Source
notificationContentThe content of Notificationindex
notificationBarContainerThe main container of NotificationBarindex
notificationBarInnerThe inner container of NotificationBarindex
See also
Vtex.store Components
VTEX IO Apps
VTEX App Store
VTEX IO Apps