How to install the accessibility widget in Vue.js
The @dockcodes/accessibility-widget-vue package allows for quick integration of the accessibility widget with Vue 3-based applications, providing access to the full functionality of the base library via a convenient Provider and the useAccessibility() composition.
1. Installing the package
Using NPM:
or Yarn:
2. Basic use
First, wrap your app in an <AccessibilityProvider> and pass your token:
App.vue
Demo.vue
3. Base package documentation
All widget methods, events, configuration and API are available in the main package documentation: 👉 @dockcodes/accessibility-widget (opens in a new tab)
🔑 Get a free token
The widget requires a token that you generate for free in the panel: 👉 https://wcag.dock.codes/my-account/tokens/ (opens in a new tab)
🤝 Contributing
Contributions are welcome! If you find a bug or want to improve the library, please open an issue or pull request on: 👉 GitHub (opens in a new tab)
Related posts
- How to install the accessibility widget in Joomla
- Accessibility widget script
- How to install the accessibility widget in MODX
- How to install the accessibility widget in Prestashop
- How to install the accessibility widget in WordPress
Still looking for answers?
Ask our experts using online chat