<div id="app" class="container">
	<apicart-buy-button product-url="https://cdn.apicart.dev/external/wlhv1egho2u4p0e0nkne2mks7f9btigi/data/01/1.json"></apicart-buy-button>
	<apicart-cart-dialog ref="cartDialog"></apicart-cart-dialog>
</div>

<script src="https://cdn.jsdelivr.net/npm/@apicart/vue-components@1.0.0-alpha7/dist/bundles/skeleton/skeleton.full.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@apicart/vue-components@1.0.0-alpha7/dist/components/button/button.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@apicart/vue-components@1.0.0-alpha7/dist/components/dialog/dialog.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@apicart/vue-components@1.0.0-alpha7/dist/components/buy-button/buy-button.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@apicart/vue-components@1.0.0-alpha7/dist/components/buy-button-with-quantity/buy-button-with-quantity.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@apicart/vue-components@1.0.0-alpha7/dist/components/cart-dialog/cart-dialog.js"></script>
<script>
	Apicart
		.setDevEnv()
		.configure({
			store: new Apicart.Store({ token: '9mCu3DlBCa4REI?Q7kKly!Rw6!_FvD8K_dgPXe1b20?r6!sPTQMyCpq_ADt!jXOD' }),
			vueComponents: {
				cartDialog: {
					dispatcherEvents: ['apicart:cart:item:added', 'apicart:cart:item:updated']
				}
			}
		});

	new Vue({
		el: '#app',
		components: {
			ApicartCartDialog,
			ApicartBuyButton
		}
	});
</script>

<style>
	* {
		font-family: -apple-system, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
		box-sizing: border-box;
	}

</style>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.