Skip to content

Micemade/elementor-react-widgets

Repository files navigation

Elementor React Widgets — Starter Blueprint

This repository contains a minimal, functional blueprint showing how to integrate React-based widgets with Elementor.

Features:

  • Single React-based widget (hello-widget) with two Elementor controls: text and styling (color + font-size)
  • Live settings synchronization in the editor via widgetManager and elementor hooks — updates applied without React remounts
  • Vite-based build producing assets/js/main.js and assets/css/style.css

Quickstart:

  1. cd into this folder and run npm install.
  2. Run npm run build or npm run watch to produce assets/ files.
  3. Run npm run build:prod for optimized build (no sourcemaps)
  4. Run npm run dev for local dev server (requires Vite config changes, according to your setup).
  5. Activate the plugin in WordPress and add the "Hello (React) Widget" in Elementor.

Notes: This plugin is intentionally small — use it as a starting point and copy useful patterns back into your main plugin, or build on top of this codebase.

Use the documentation in docs/elementor-react-integration.md

Resources

About

Minimal, functional blueprint showing how to integrate React-based widgets with Elementor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors