How to install the accessibility widget in Svelte
The @dockcodes/accessibility-widget-svelte package allows easy integration of the accessibility widget with Svelte applications. It provides an AccessibilityProvider wrapper and the reactive accessibilityStore.
1. Installation
Using NPM:
or Yarn:
2. Basic use
Wrap your app with AccessibilityProvider and pass your token.
App.svelte
Demo.svelte
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