The `kritzel-vue` package (current version 0.1.86) serves as the official Vue.js integration layer for components built with the Kritzel Stencil library. It enables developers to seamlessly embed and utilize Kritzel's UI components directly within their Vue 3 applications, providing an idiomatic Vue experience around the underlying Stencil elements. As a pre-1.0 release, indicated by its version number, `kritzel-vue` is likely under active development with a potentially frequent release cadence. This also implies that breaking changes to its API surface are probable as it matures towards a stable 1.0 release. Its key differentiator lies in specifically facilitating the use of `kritzel-stencil` components in Vue, abstracting away the complexities of integrating Web Components into a Vue rendering environment and leveraging Vue's plugin system for global component registration.
npm install kritzel-vueVerified import paths — ran on the pinned version, not inferred.
Demonstrates initializing a Vue 3 application, registering the Kritzel component library as a plugin, and using Kritzel components in a template.
Regularly check the GitHub repository and package changelog for updates and migration guides. Pin to specific patch versions if stability is critical.
Ensure `npm install kritzel-stencil` or `yarn add kritzel-stencil` is run in your project.
Add `import { ComponentLibrary } from 'kritzel-vue';` and `createApp(App).use(ComponentLibrary).mount('#app');` to your main Vue entry file (e.g., `main.ts`).Ensure `app.use(ComponentLibrary)` is called in your main Vue setup, or explicitly import the component (`import { KritzelEngine } from 'kritzel-vue';`) in the script section of the component where it's used.Verify `import { ComponentLibrary } from 'kritzel-vue'` is correct and that `app.use(ComponentLibrary)` is called on a valid Vue application instance.Install the peer dependency by running `npm install kritzel-stencil` or `yarn add kritzel-stencil` in your project.