v-blockly

Blockly wrapped in a vue component
1,025 13
Install
npm install v-blockly@beta
Latest Version:0.2.26
Vue:2
License:MIT
Last Updated:Jan 4, 2023
Links: GitHub  ·  npm
Maintainer: fedor.baart

v-blockly

Blockly wrapped in a vue component

Usage:

To download this package, install it through npm:

npm install --save v-blockly
// Import the component, and optionally Blockly itself
// You can also import goog if you needed
// As a side effect the Blockly object is available on the window object
import VBlockly, { Blockly } from 'v-blockly'
Vue.component('v-blockly', VBlockly)

And then in your vue template.

<v-blockly workspace="workspace.xml" toolbox="toolbox.xml"></v-blockly>

That's it. The package already includes Blockly itself. It's not possible to keep blockly out of the package as a peer dependency because we are import blockly using a wrapped imported module.

Development

This package contains some examples in a storybook that you can run with:

npm run storybook

Example

You can see a minimal example in this codesandbox.

Related Packages

vue

The progressive JavaScript framework for building modern web UI.

588,019,132 54,801
vue
@vueuse/shared
372,738,348 22,398
@vueuse/core

Collection of essential Vue Composition Utilities

367,188,523 22,398
@vitejs/plugin-vue

The official plugin for Vue SFC support in Vite.

333,357,380 686
eslint-plugin-vue

Official ESLint plugin for Vue.js

266,364,830 4,591

Version History

Version Released Vue License
0.2.26 ^2.6.10 MIT
0.2.25 ^2.6.10 MIT
0.2.24 ^2.6.10 MIT
0.2.22 ^2.6.10 MIT
0.2.21 ^2.6.10 MIT