antd-shopping-cart is a collection of React UI components for constructing shopping cart UI's in antd projects.
npm install --save antd-shopping-cartThis 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.
Check out a small demo here to see the components in action.
TODO
MIT © frostyfan109