@pantoken/vue
Vue plugin for pantoken: registers the web components and reads tokens.
7,635
1
| Install | |
|---|---|
npm install @pantoken/vue |
|
| Latest Version: | 0.2.3 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Oct 16, 2026 |
| Links: | GitHub · npm |
Maintainer: thedannywahl
@pantoken/vue
A Vue plugin over @pantoken/web-components. It registers the Instructure custom elements and tells
Vue's compiler to treat instui-* tags as custom elements.
Compatibility
Verified with Vue 3.0.0 and 3.5.43 using server-rendered apps that install PantokenVue, emit an
instui-icon, and use the SSR-safe token fallback. See the
compatibility matrix for exact tested releases.
Install
npm i @pantoken/vue
Also available as pantoken/vue.
Usage
import { createApp } from "vue";
import { PantokenVue } from "@pantoken/vue";
import "@pantoken/css";
createApp(App).use(PantokenVue).mount("#app");
API
PantokenVue— the Vue plugin.app.use(PantokenVue)registers the custom elements and configures the compiler to acceptinstui-*tags. Also the default export.readToken(name, fallback?): string— read a resolved--instui-*value. Returnsfallbackon the server.register,iconSvg— re-exported from@pantoken/web-componentsfor direct registration and icon-SVG lookup.
Related
- Pairs with
@pantoken/cssfor the base--instui-*custom properties. - Wraps
@pantoken/web-components, which supplies the custom elements.
License
MIT
Version History
| Version | Released | License |
|---|---|---|
| 0.2.3 | MIT | |
| 0.2.2 | MIT | |
| 0.2.1 | MIT | |
| 0.2.0 | MIT | |
| 0.1.40 | MIT | |
| 0.1.39 | MIT | |
| 0.1.38 | MIT | |
| 0.1.37 | MIT | |
| 0.1.36 | MIT | |
| 0.1.35 | MIT | |
| 0.1.34 | MIT | |
| 0.1.33 | MIT | |
| 0.1.32 | MIT | |
| 0.1.31 | MIT | |
| 0.1.30 | MIT | |
| 0.1.29 | MIT | |
| 0.1.28 | MIT | |
| 0.1.27 | MIT | |
| 0.1.26 | MIT | |
| 0.1.25 | MIT | |
| 0.1.24 | MIT | |
| 0.1.23 | MIT | |
| 0.1.22 | MIT | |
| 0.1.21 | MIT | |
| 0.1.20 | MIT | |
| 0.1.19 | MIT | |
| 0.1.18 | MIT | |
| 0.1.17 | MIT | |
| 0.1.16 | MIT | |
| 0.1.15 | MIT |
Showing the latest 30 of 45. See every release on npm