Documentation
Feedback
Guides
VTEX IO Apps

VTEX IO Apps
Newsletter
vtex.store-components
Version: 3.119.6
Latest version: 3.178.1

This page is about version 3.119.6 of the app, which is not the most recent version. The latest stable version is 3.178.1.

Description

Newsletter is a VTEX component that displays a newsletter form. 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.

Then, add newsletter block into your app theme.

Example:


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

Configuration

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

Prop nameTypeDescriptionDefault value
labelStringLabel of the form used by the componentSubscribe to our newsletter (translated text)
placeholderStringPlaceholder of the email inputEnter your email address (translated text)
submitStringLabel of the submit buttonSign up (translated text)
hideLabelBooleanHide labelfalse

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

Class nameDescriptionComponent Source
newsletterOutmost elementindex
containerContainer elementindex
formForm elementindex
inputGroupElement that wraps inputindex
buttonContainerElement that wraps the buttonindex
labelLabel of the inputindex
errorError messageindex
confirmationClass added to newsletter when user submit emailindex
confirmationTitleTitle showed when user submit emailindex
confirmationTextText showed when user submit emailindex
See also
Vtex.store Components
VTEX IO Apps
VTEX App Store
VTEX IO Apps