I'd like to access plugin API:s from the Embla API. It would make it convenient to have all API:s gathered in one instance. Example:
✅ How to access a plugin API:
import EmblaCarousel from 'embla-carousel'
import Autoplay from 'embla-carousel-autoplay'
const options = { loop: false }
const embla = EmblaCarousel(emblaNode, options, [Autoplay()])
embla.plugins().autoplay.reset() // Access the plugin API like this
❌ How not to access a plugin API:
import EmblaCarousel from 'embla-carousel'
import Autoplay from 'embla-carousel-autoplay'
const options = { loop: false }
const autoplay = Autoplay()
const embla = EmblaCarousel(emblaNode, options, [autoplay])
autoplay.reset() // Don't do this
Feature request is related to
Describe the solution you'd like
I'd like to access plugin API:s from the Embla API. It would make it convenient to have all API:s gathered in one instance. Example:
✅ How to access a plugin API:
❌ How not to access a plugin API: