Documentation
Feedback
Guides
VTEX IO Apps

VTEX IO Apps
Deprecated
Greeting

{"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-greeting-0.png"}}

️⚠️ Warning

The Greeting app has been deprecated. Despite this, support for it is still granted.

Greeting is a VTEX component that renders a default welcome message with the user first name, if it is available in the orderForm. This component can be imported and used by any VTEX app.

Usage

You should follow the usage instruction in the main README.

To import it into your code:


_10
import { Greeting } from 'vtex.store-components'

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


_10
<Greeting />

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

Class nameDescriptionComponent Source
greetingContainerThe container wrapping the message and the firstNameindex
messageThe default greeting messageindex
firstNameThe user first nameindex
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