Vue
It's available as
npm package
.The Vue bundle is based on the Vanilla version, but exported as a CommonJS Vue plugin/component.
Since it doesn't include the peer dependencies, you'll need to install those too:
After that, you’re ready to import the Microlink SDK into your Vue project, either globally or on-demand.
Globally
App. Js
Mycomponent. Vue
On-demand
Importing the SDK globally allows you to define global API options, this is handy for setting an API key for your whole application.
The Vue integration supports any Microlink API query parameter, just pass them as props.
Although it's shipped with default styles, you can customize it using
CSS variables
or CSS classes.