defineCustomElement(DarkModeSwitch)
This repo is an example on how to use the defineCustomElement
API in Vue 3.
It contains examples on how to export Vue components as custom elements, and how to use them in any app.
Read the blog post for a step by step discussion.
๐
Demo Visit the live demo to see the custom element in action.
๐ธ
Play npm run dev: build the library and start the playground