Visual Page Builder
Intuitive drag-and-drop interface for building pages with a comprehensive sidebar editor
A powerful Vue 3 library for visual page builders
Install the library and start building:
npm install vue-wswg-editor📦 Package: vue-wswg-editor on npm
Configure the Vite plugin in your vite.config.ts:
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import { fileURLToPath } from "url";
import { vueWswgEditorPlugin } from "vue-wswg-editor/vite-plugin";
export default defineConfig({
plugins: [
vue(),
vueWswgEditorPlugin({
rootDir: "@page-builder",
}),
],
resolve: {
alias: {
"@page-builder": fileURLToPath(new URL("./src/page-builder", import.meta.url)),
},
},
});Use the editor component in your Vue app:
<template>
<WswgPageBuilder v-model="pageData" :editable="true" :showBrowserBar="true" />
</template>
<script setup lang="ts">
import { ref } from "vue";
import { WswgPageBuilder } from "vue-wswg-editor";
import "vue-wswg-editor/style.css";
const pageData = ref({
blocks: [],
settings: {},
});
</script>vue-wswg-editor provides a complete solution for building visual page editors in Vue 3 applications. It combines:
Ready to get started? Check out the Getting Started Guide.