Gift Cards component

GiftCards(props) ⇒ React.Element

GiftCards is a child component of the CartPage component. This component shows a form for applying gift cards along with a list of applied Gift Cards in the shopping cart.

Kind: global function

Param Type Description
props Object Component props
props.setIsCartUpdating function Callback function to call when adding or removing a gift card
props.classes Object CSS className overrides. See giftCards.css for a list of classes you can override.

Example (Importing into your project)

import GiftCards from '@magento/venia-ui/lib/components/CartPage/GiftCards';

For implementation details View Source.


The Gift Cards component and it’s child components use the Gift Card Talons to perform side effects and calculate the values for rendering the JSX content.