Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.29 KB

File metadata and controls

44 lines (29 loc) · 1.29 KB

antd-shopping-cart

antd-shopping-cart is a collection of React UI components for constructing shopping cart UI's in antd projects.

NPM JavaScript Style Guide

Install

npm install --save antd-shopping-cart

Basic overview

This package provides the following components:

Add to cart

  • AddToCartIconButton
  • AddToCartButton
  • AddToCartDropdownButton

Cart popover

  • CartPopover
  • CartPopoverButton

Cart selection

  • CartSelectDropdown

Cart creation

  • CartCreateModal

Context
The components are all based on ShoppingCartContext, which implements IShoppingCartContext.

This package natively provides a local storage-based implementation of the context provider, but you can implement the provider yourself if more control over data flow is necessary. The context is currently strictly synchronous, though asynchronous support will be added in the future.

Demo

Check out a small demo here to see the components in action.

Documentation

TODO

License

MIT © frostyfan109