
Description
Vue Konva provides declarative Vue components for the Konva 2D canvas scene graph. It is for building design editors, whiteboards, diagrams, annotations and other interactive graphics in Vue. Each component is named after the Konva node it wraps, with a v- prefix, so v-rect, v-circle, v-line, v-image, v-text and v-path are the core shapes, and you can create custom shapes as well. Konva properties are passed through a config prop. You can get a reference to the underlying Konva objects with Vue's ref feature. By default the library works in non-strict mode, where it updates only the properties that changed, for example after a drag. A strict mode, enabled with the __useStrictMode attribute, updates every property to the value in config on each change. A configurable prefix lets you avoid clashes with other libraries, and a customNodes option lets you register your own Konva node classes.…
Highlights
- Vue components for Konva shapes
- Strict and non-strict update modes
- Custom Konva node classes
- Tree-shaking core build
- CDN UMD build
Ratings & Reviews
No ratings yet
Be the first to rate vue-konva.
People also visit

react-konva
React Konva is a JavaScript library for drawing complex canvas graphics
vue-konva FAQ
What is vue-konva?
Declarative Vue components for the Konva 2D canvas library, used for editors, whiteboards and interactive graphics.
Which Vue version does it need?
Vue 3 for the current package. The README says Vue 2 users should use vue-konva version 2.
How do I install it?
Install it from npm, or load the UMD build from a CDN, which registers the global VueKonva.
What is strict mode?
In strict mode, every property is set to the value in config on each update. By default only changed properties are updated.
Can I reduce bundle size?
Yes. The README describes a core build that includes only the shapes you import, and individual component imports.
What are the best vue-konva alternatives?
Popular alternatives to vue-konva include react-konva, vnodes and vue-flow. See all vue-konva alternatives




















