shopify-cart-pro
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Shopify Cart Pro

Customers can manage their cart from the cart overlay.

Cart Preview

Installation

yarn add shopify-cart
import React from 'react'
import * as ReactDOM from 'react-dom'

import { Cart, showCart } from 'shopify-cart'

// Initialize the cart
const cartContainerEl = document.getElementById('cart-container')
ReactDOM.render(<Cart />, cartContainerEl)

// Open the cart
const cartIconEl = document.getElementById('cart-icon')
cartIconEl.addEventListener('click', showCart)

Readme

Keywords

none

Package Sidebar

Install

npm i shopify-cart-pro

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

60.5 kB

Total Files

22

Last publish

Collaborators

  • acidic9