mage-os / module-widgetkit
Widgetkit of cms widgets for Mage-OS
MageOS Widgetkit Module for Magento
Kit of CMS Widgets compatible with Hyvä frontend theme.
Overview
The Widgetkit module defines a pre-built list of cms widgets with dedicated preview for Magento's pagebuilder.
As far as this module is full compatible with Hyvä, each preview generates Tailwind CSS style when component is loaded on pagebuilder stage, alpine JS bindings are resolved on previews too.
🚀 Features
-
Full support for Hyvä frontend: PageBuilder previews render each widget's real, already-compiled theme Tailwind CSS (no runtime CSS compilation) and initialize Alpine.js bindings on the
cms_block/cms_pageedit controllers. The preview theme is picked automatically per CMS page/block: it uses the Hyvä theme assigned to the entity's own store view when there is one, otherwise falls back to an admin-configurable default (Stores → Configuration → MageOS Widgetkit → PageBuilder Preview), whose theme list only ever offers Hyvä child themes. -
Customizable slideshow widget
-
Customizable slider widget
-
Customizable product slider widget
-
Customizable grid widget
-
Customizable product grid widget
-
Customizable information grid widget – icon, title, description and a CTA button per item
-
Customizable accordion widget – collapsible content sections
-
Customizable marquee widget – infinitely scrolling strip of logos/content
-
Customizable tab widget – switchable content panels
-
Customizable stacked grid widget – full-width stacked rows, in 3 layout variants
-
Customizable countdown widget – counts down to a target date
-
Customizable banner widget – image + title/text/CTA, in 5 layout variants
🔧 Installation
-
Install it into your Mage-OS/Magento 2 project with composer:
composer require mage-os/module-widgetkit -
Enable module
bin/magento module:enable MageOS_Widgetkit bin/magento setup:upgrade
🤝 Changelog
Please see CHANGELOG for more information on what has changed recently.
📄 License
The MIT License (MIT). Please see License File for more information.
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog
and this project adheres to Semantic Versioning.
2.0.0
Change of main logic
- Changing the core logic: switching from Twind.js to compiling CSS previews using Sabberworm in PHP.
- Reducing the number of templates assigned to widgets: with Tailwind, it is better to avoid generating CSS classes via PHP and instead rely more heavily on PHTML markup.
1.4.8
Fixed
- A11y fix for slideshow and slider widgets snap-track
1.4.7
Updated
- Enhance widgets extensibility enabling every child template override through $block->setData() inside phtml
1.4.6 - 2026-04-21
Fixed
- PHP 8.4 and 8.5 compatibility: add missing parameter type in ProductWidget::loadProducts, add explicit void return type on Observer::execute, guard against null module path before substr(), add missing @throws PHPDoc on Adminhtml\Grid\Preview::renderMainTemplate
1.4.5
Fixed
- Fix null dereference on product loading in ProductWidget
- Remove invalid return statement from constructors in Slider/Preview and Slideshow/Preview
- Change readonly private to protected readonly in RegisterModuleForHyvaConfig
1.4.4
Updated
- Fix dotnav for slider/product-slider widgets on mobile
1.4.3
Updated
- Add anchor to slider item container if button content is not set
1.4.2
Fixed
- Fix slideshow min-height management
1.4.1
Updated
- Add missing frontend controls on widgets parameters
1.4.0
- Update composer JSON making the module installable for Magento Openso
1.3.2
Updated
- Add the right file type for Tailwind 4 compatibility
1.3.1
Updated
- Remove css functions from adminhtml/web/css css preview files due to incompatibility with nativa pagebuilder template sacing feature.
1.3.0
Added
- Grid and Product grid widgets are available!
1.2.0
Added
- product Slider widget is available!
1.1.3
Fixed
- Fix dotnav navigation click issue for slider widget
1.1.2
Fixed
- Fix tailwind compilation for widgetkit missing css tailwind classes
1.1.1
Updated
- Slider widget minor fixes made
1.1.0
Added
- Slider widget is available!
1.0.0
Added
- First Commit, slideshow widget is available!
| Version | Stability | QA Status | Compatibility | Released |
|---|---|---|---|---|
| 2.0.0 | stable | Fail | Not compatible Details | 2026-09-04 13:06:46 |
| 1.4.8 | stable | Fail | Magento 2.4.7-2.4.9 Details | 2026-06-08 14:11:44 |
| 1.4.7 | stable | Not tested | Not yet tested Details | 2026-05-29 13:20:08 |
| 1.4.6 | stable | Not tested | Not yet tested Details | 2026-05-01 02:37:05 |
| 1.4.5 | stable | Not tested | Not yet tested Details | 2026-04-16 16:15:30 |
| 1.4.4 | stable | Not tested | Not yet tested Details | 2026-04-14 14:23:09 |
| 1.4.3 | stable | Not tested | Not yet tested Details | 2026-04-11 05:58:15 |
| 1.4.2 | stable | Not tested | Not yet tested Details | 2026-04-10 16:42:26 |
| 1.4.1 | stable | Not tested | Not yet tested Details | 2026-04-10 16:06:18 |
| 1.4.0 | stable | Not tested | Not yet tested Details | 2026-03-10 10:41:45 |
| 1.3.2 | stable | Not tested | Not yet tested Details | 2026-03-09 09:31:22 |
| 1.3.1 | stable | Not tested | Not yet tested Details | 2026-03-08 15:55:06 |
| 1.3.0 | stable | Not tested | Not yet tested Details | 2026-03-07 10:41:28 |
| 1.2.0 | stable | Not tested | Not yet tested Details | 2026-02-28 11:08:01 |
| 1.1.3 | stable | Not tested | Not yet tested Details | 2026-02-27 10:57:49 |
| 1.1.2 | stable | Not tested | Not yet tested Details | 2026-02-27 10:45:12 |
| 1.1.1 | stable | Not tested | Not yet tested Details | 2026-02-27 09:48:21 |
| 1.1.0 | stable | Not tested | Not yet tested Details | 2026-02-25 09:38:00 |
| 0.1.0 | stable | Not tested | Not yet tested Details | 2026-01-17 18:30:54 |
Requires 7
| Package | Constraint |
|---|---|
| hyva-themes/magento2-theme-module | ^1.4 |
| mage-os/module-advanced-widget | ^1.2.5 |
| mage-os/module-page-builder-widget | ^1.3 |
| magento/module-page-builder | ^2.0 |
| magento/module-widget | * |
| php | ^8.1 |
| sabberworm/php-css-parser | ^8.7 |
Compatibility
Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.
Code Quality
Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge. A phpcs finding can't make a module incompatible.
Static analysis
Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.
| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Fail | 935 | 354 errors, 581 warnings (ruleset: Magento2), 406 auto-fixable with phpcbf |
| PHPMD | Warning | 5 | 5 rule violations (MissingImport:1, ExcessiveParameterList:1, UnusedFormalParameter:1, CyclomaticComplexity:1, NPathComplexity:1) |
| Cpd | Warning | 5 | 5 duplicated chunks spanning 285 total lines (min-lines=5, min-tokens=70) |
| Composer validate | Info | 1 | valid; 1 advisory note (composer validate --strict) |
PHPStan
Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases.
Tests
Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.
Unit tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Integration tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Security
Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.
More from mage-os
View vendorGCP event sinks for mage-os/mageos-async-events
Combine the power of LLM and domain knowledge to improve admin experience though a chatbot UI.
Turn an existing module into recurring revenue.
If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.