@myissue/vue-website-page-builder v3.1.54
DEVELOPMENT VERSION - NOT READY FOR PRODUCTION
š Official Launch Date: June 15, 2025
We're working hard to bring you a production-ready page builder. Stay tuned for updates!
You are welcome to test the builder and report any bugs or feedback before the official launch date.
Your input will help us deliver a more stable and feature-rich release!
Free Click & Drop Page Builder
Overview
A Vue 3 page builder component with drag & drop functionality for creating dynamic web pages.
Installation
The web builder for stunning pages. Enable users to design and publish modern pages at any scale.
npm install @myissue/vue-website-page-builderClick & Drop Page Builder
Play around with the Page Builder
Lightweight & Minimalist Page Builder with an elegant and intuitive design, focused on simplicity and speed.
Build responsive pages like listings, jobs or blog posts and manage content easily using the free Click & Drop Page Builder.
To star the repository, simply click on the Star button located at the top-right corner of the GitHub page. Thank you in advance for your support! š
Demo
Introducing the The Lightweight Free Vue Click & Drop Page Builder create and enhance digital experiences with Vue on any backend.
Play around with the Page Builder
About
A Page Builder designed for growth. Build your website pages with ready-made components that are fully customizable and always responsive, designed to fit every need. A powerful Page Builder for growing merchants, brands, and agencies.
Features
Includes:
- Page Builder: Click & Drop Page Builder.
- Customizable Design: Tailor the look to match your brand.
The Page Builder is packed with features:
- Click & Drop: Easily rearrange elements on your page.
- Reordering: Change the order of your content without hassle.
- True Visual Editing: See your changes in real-time as you make them.
- Media Library: Access and manage your media files effortlessly.
- Unsplash: Unsplash Integration.
- Responsive Editing: Ensure your site looks great on all devices.
- Text Editing: Edit text content live and in real-time.
- Font Customization: Choose the perfect fonts to match your style.
- Undo & Redo: Experiment confidently with the ability to revert changes.
- Global Styles: Global Styles for fonts, designs, & colors.
- YouTube Videos: Integrate video content smoothly.
Powerful Page Builder for any growing merchants, brands, & agencies. Empower users to create the perfect content with the Page Builder.
Technical details
- Technologies: This Page Builder is developed using TypeScript, Vue 3, the Composition API, Pinia, CSS, Tailwind CSS, and HTML.
- Features: Click & Drop Page Builder.
Documentation
Requirements
Please note that these instructions assume you have Node.js installed.
- Node.js ā„ 18.0.0
- Vue.js ā„ 3.0.0
- Modern browser with ES6+ support
Getting started & installation
Make sure to install the dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun installImportant: CSS Import Required
The Page Builder requires its CSS file to be imported for proper styling and automatic icon loading:
import '@myissue/vue-website-page-builder/style.css'This import automatically includes:
- ā Page Builder styles
- ā Google Fonts (Jost, Cormorant - no additional setup needed)
- ā Google Material Icons (no additional setup needed)
- ā Responsive design utilities
Quick Start
Get up and running quickly and initializing the builder in your Vue project. The following example demonstrates the minimal setup required to start building pages.
- The Page Builder requires its CSS file to be imported for proper styling and automatic icon loading:
<script setup>
import { PageBuilder } from '@myissue/vue-website-page-builder'
import '@myissue/vue-website-page-builder/style.css'
</script>
<template>
<PageBuilder />
</template>Optional: Provide Config to PageBuilder
Get up and running quickly by importing the PageBuilder component, setting up your configuration, and initializing the builder in your Vue project. The following example demonstrates the minimal setup required to start building pages with your own config and logo.
- Use
sharedPageBuilderStoreto ensure the external PageBuilderClass and internal PageBuilder component share the same state - (Optional) Provide a
configPageBuilderobject to customize the builder, such as:pageBuilderLogoto display your company logo in the builder toolbarresourceDatato prefill the builder with initial datauserSettingsto set user preferences such as theme, language, or autoSavecreateNewResourceFormName(recommended): Specify the resource type (e.g.,"article","jobPost","store", etc.) in theupdateOrCreateconfig. This is especially useful if your platform supports multiple resource types. By providing a unique name, the Page Builder can correctly manage layouts and local storage for each resource type, allowing users to continue where they left off for different resources.
<script setup>
import {
PageBuilder,
PageBuilderClass,
sharedPageBuilderStore,
} from '@myissue/vue-website-page-builder'
import '@myissue/vue-website-page-builder/style.css'
const configPageBuilder = {
updateOrCreate: {
// Set the resource type for better local storage and multi-resource support
createNewResourceFormName: 'article',
},
pageBuilderLogo: {
src: '/logo/logo.svg',
},
userForPageBuilder: { name: 'John Doe' },
resourceData: {
title: 'Demo Article',
id: 1,
},
userSettings: {
theme: 'light',
language: 'en',
autoSave: true,
},
}
// Use sharedPageBuilderStore for shared state between PageBuilderClass and PageBuilder component
const pageBuilderStateStore = sharedPageBuilderStore
const pageBuilderClass = new PageBuilderClass(pageBuilderStateStore)
// Initializing Page Builder with essential configuration
pageBuilderClass.setConfigPageBuilder(configPageBuilder)
</script>
<template>
<PageBuilder />
</template>Company Logo & Logged-in User
You can display your company logo in the Page Builder interface and set the currently logged-in user by passing both a logo URL and user information in your config object:
- Company Logo: Set the logo URL in your config object and pass it to the PageBuilder using
pageBuilderClass.setConfigPageBuilder(configPageBuilder). When provided, the logo will appear at the top of the Page Builder with proper spacing in the toolbar. - Logged-in User: Pass a
userForPageBuilderobject in your config to display or use the logged-in user's information within the builder (e.g., for audit trails, personalization, or permissions).
Basic Usage:
- You can display your company logo in the page builder interface by setting the
srcin your config object and passing it to the PageBuilder usingpageBuilderClass.setConfigPageBuilder(configPageBuilder). When provided, the logo will appear in the top of the page builder.
Basic Usage:
<script setup>
import {
PageBuilder,
PageBuilderClass,
sharedPageBuilderStore,
} from '@myissue/vue-website-page-builder'
import '@myissue/vue-website-page-builder/style.css'
const configPageBuilder = {
pageBuilderLogo: {
src: '/logo/logo.svg',
},
userForPageBuilder: { name: 'John Doe' },
}
// Use sharedPageBuilderStore for shared state between PageBuilderClass and PageBuilder component
const pageBuilderStateStore = sharedPageBuilderStore
const pageBuilderClass = new PageBuilderClass(pageBuilderStateStore)
// Initializing page builder with essential configuration
pageBuilderClass.setConfigPageBuilder(configPageBuilder)
</script>
<template>
<PageBuilder />
</template>Configuration Options
| Prop | Type | Default | Description |
|---|---|---|---|
PageBuilderLogo | String | null | URL path to your company logo image |
Updating Existing Resources
To load existing content that was created with this PageBuilder:
- Use
sharedPageBuilderStoreto ensure the external PageBuilderClass and internal PageBuilder component share the same state - Import
PageBuilderClasswhich contains all methods to manipulate and control the page builder state - in this case we need theloadExistingContent()method to load existing content into the page builder - The PageBuilderClass uses the shared store to maintain state consistency between external operations and the internal PageBuilder component, ensuring that when you load content externally it appears correctly in the PageBuilder interface
Set
formTypeto"update"in your config object and pass it to the PageBuilder usingpageBuilderClass.setConfigPageBuilder(configPageBuilder). This tells the PageBuilder that you're editing an existing resource rather than creating a new one, which affects how the component handles data and interactions.Set formType to "update" in template:
<script setup>
import {
PageBuilder,
PageBuilderClass,
sharedPageBuilderStore,
} from '@myissue/vue-website-page-builder'
import '@myissue/vue-website-page-builder/style.css'
const configPageBuilder = {
updateOrCreate: {
formType: 'update',
},
}
// Use sharedPageBuilderStore for shared state between PageBuilderClass and PageBuilder component
const pageBuilderClass = new PageBuilderClass(pageBuilderStateStore)
// Initializing page builder with essential configuration
pageBuilderClass.setConfigPageBuilder(configPageBuilder)
// Populating page builder with existing resource content
pageBuilderClass.loadExistingContent(existingResourceFromBackend)
</script>
<template>
<PageBuilder />
</template>How should existingResourceFromBackend look?
When loading an existing resource, each component object will have an id assigned by the page builder.
The example below shows the structure as it would appear when loaded from local storage after components have been added in the builder.
- Example JSON string (from localStorage or backend)
- For existing resources, id will always be present and set by the page builder.
TypeScript interface for reference
export interface ComponentObject {
id: string | number | null
html_code: string
title?: string
}<script setup>
// Example JSON string (from localStorage or backend)
const existingResourceFromBackend = JSON.stringify([
{
html_code: `<section>
<div>
<h1>Article Title</h1>
<p>Content</p>
</div>
</section>`,
id: null,
title: 'Component Title',
},
{
html_code: `<section>
<div>
<h1>Article Title</h1>
<p>Content</p>
</div>
</section>`,
id: null,
title: 'Component Title',
},
])
</script>
<template>
<PageBuilder />
</template>Alternatively, you can provide a raw HTML string containing your <section> components:
Customization
Customizing the page builder is made simple since all the logic resides in the PageBuilder Class.
- Google Fonts (Jost, Cormorant) and Material Icons are automatically loaded when you import the CSS file. No additional setup required for fonts or icons!Custom Components
Want to add your own media library or Create custom components that can be injected into the page builder:
š Custom Components Setup Guide - Learn how to create and integrate your own components
Example integration:
<script setup>
import { PageBuilder } from '@myissue/vue-website-page-builder'
import YourMediaLibraryComponent from './ComponentsPageBuilder/YourMediaLibraryComponent.vue'
import YourSearchComponent from './ComponentsPageBuilder/YourSearchComponent.vue'
</script>
<template>
<PageBuilder :CustomMediaLibraryComponent="YourMediaLibraryComponent" :CustomSearchComponent="YourSearchComponent" />
</template>Troubleshooting
Fonts or Icons Not Displaying
If fonts (Jost, Cormorant) or Material Icons are not displaying correctly, verify that:
CSS Import: Ensure you're importing the CSS file:
import '@myissue/vue-website-page-builder/style.css'Network Access: The package loads fonts and icons from Google Fonts CDN. Ensure your application can access:
https://fonts.googleapis.com/css2?family=Jost:* https://fonts.googleapis.com/css2?family=Cormorant:* https://fonts.googleapis.com/css2?family=Material+Symbols+OutlinedContent Security Policy: If using CSP, allow Google Fonts:
<meta http-equiv="Content-Security-Policy" content="font-src 'self' https://fonts.googleapis.com;" />
Contributing
- Fork the repository
- Create your feature branch
- Make your changes
- Build and test locally
- Submit a pull request
Security Vulnerabilities
If you discover a security vulnerability, please send us a message.
Get in touch for customization or any questions
If you have any questions or if you're looking for customization, feel free to connect with our developer.
Feedback
Suggestions, or any issues you encounter while using this app. Feel free to reach out.
Support the Project
We would greatly appreciate it if you could star the GitHub repository. Starring the project helps to boost its visibility.
License
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago