I'm trying to load vue3-burger-menu
, but the documentation is only for the Options API
. On the other hand, I'm using the Composition API
, but I'm a bit stuck.
The documentation says this:
import { Slide } from 'vue3-burger-menu' // import the CSS transitions you wish to use, in this case we are using `Slide` export default { components: { Slide // Register your component } }
But export defaults
doesn't work for me.
So, how do I load slideshows
?
Here is aworking playgroundwithvue3-burger-menuexample.
https://stackblitz.com/edit/vue-wwkpny ?file=src/App.vue
You must put the code in the question into a custom component.
like this:
MyMenu.vue
and use it in your application:
App.vue