<div id="app" class="container">
	<button @click="openDrawer">Open drawer</button>
	<apicart-drawer ref="drawer">
		Some content inside drawer
	</apicart-drawer>
</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/drawer/drawer.js"></script>

<script>
	new Vue({
		el: '#app',
		components: {
			ApicartDrawer
		},
		methods: {
			openDrawer() {
				this.$refs.drawer.open();
			},
			closeDrawer() {
				this.$refs.drawer.close();
			}
		}
	});
</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.