@quinnlive/shoppable-videos
v1.4.0
Published
A react component to render products as swiper cards with videos
Downloads
1
Keywords
Readme
@quinnlive/shopable-videos
Made with create-react-library
Install
npm install --save @quinnlive/shopable-videos
Usage
import {useState} from "react";
import {ProductSwiper} from "@quinnlive/shopable-videos";
function App() {
const [cartItems, setCartItems] = useState([]);
const handleAddtoCart = (product) => {
console.log(product);
};
return (
<ProductSwiper
apiKey=""
cartItems={cartItems}
onAddToCart={handleAddtoCart}
config={{
cartUrl: "/cart"
swiperMargin: 50,
}}
/>
);
}
export default App;
License
MIT © razbotics