antd-shopping-cart
v1.0.8
Published
Shopping cart UI components for antd
Downloads
3
Readme
antd-shopping-cart
antd-shopping-cart is a collection of React UI components for constructing shopping cart UI's in antd projects.
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