SSENSE / vue-carousel

A flexible, responsive, touch-friendly carousel for Vue.js
https://ssense.github.io/vue-carousel/
MIT License
1.72k stars 504 forks source link

Feature: Provide a Web Component build #518

Open teampolyglot opened 4 years ago

teampolyglot commented 4 years ago

I'd like to use this carousel in my own HTML using just a <script> tag, but no module bundlers and no extra Javascript code.

This is what I would like to achieve in a plain-old HTML file:

<script src="https://unpkg.com/vue"></script>
<script src="path/to/vue-carousel.js"></script>

<vue-carousel>
  <vue-slide>first slide</vue-slide>
  <vue-slide>second slide</vue-slide>
</vue-carousel>

This should be possible because vue-cli-service does support two additional build targets:

vue-web-component-wrapper says that slots are well-supported