Search by

blackbird / hyva-cms-library

Reusable Hyvä CMS component library

Maintainers

Package info

github.com/blackbird-agency/hyva-cms-library

Language:HTML

Type:magento2-module

pkg:composer/blackbird/hyva-cms-library

Transparency log

Statistics

Installs: 35

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

1.2.0 2026-09-04 12:02 UTC

This package is auto-updated.

Last update: 2026-09-04 12:14:21 UTC


README

Latest Stable Version License: MIT

A reusable Hyvä CMS component library for Magento 2, providing extra custom field types and CMS elements on top of Hyvä Commerce CMS.

No manipulations required, instant use after installation.

ComponentsInstallationUsage

Components

Custom field types

  • File uploader : upload and manage files (e.g. videos) directly from a CMS element configuration.
  • Icon picker : pick an SVG icon from a modal browsing the project theme's own icons (<theme>/web/svg/) and a configurable selection of icon sets (Lucide, Heroicons Outline, Heroicons Solid), with a name search across all of them. Icons overridden or made inconsistent by the theme(s) in context are flagged directly in the picker.

CMS elements

  • Incrementer : an animated counter, with configurable value, unit, label and animation speed.
  • Mosaic : an image mosaic block with optional link, CTA, icon and clickable overlay.
  • Newsletter : a newsletter subscription form with configurable title and subtitle.
  • Video : a video banner with autoplay, loop, lazyload and automatic poster extraction (via FFMpeg).

Installation

Requirements

Download the Package:

composer require blackbird/hyva-cms-library

Move the tailwind/increment.css file into your theme's tailwind/components/ folder.

Install the Module

Go to your Magento root directory, then run the following Magento commands:

If you are in production mode, do not forget to recompile and redeploy the static resources, or to use the --keep-generated option.

bin/magento module:enable Blackbird_HyvaCmsLibrary
bin/magento setup:upgrade
bin/magento cache:flush

Usage

Once the module is installed, the CMS elements described in Components become available directly in the Hyvä CMS builder, each under its own category, with no further configuration required.

The file uploader and icon picker are custom field types made available for use by any CMS element configuration, in this module or in your own.

Icon picker

A custom field type that lets a content editor pick an SVG icon from a modal, and resolves the chosen value when a CMS component renders it.

The modal offers a Recommended icons section when the component defines any, then Theme icons, then one section per icon set enabled in the configuration:

Section Value Read from
Theme icons theme/my-icon <theme>/web/svg/, theme inheritance included
Lucide lucide/settings Hyva_Theme, view/base/web/svg/lucide
Heroicons Outline heroicons/outline/star Hyva_Theme, view/frontend/web/svg/heroicons/outline
Heroicons Solid heroicons/solid/star Hyva_Theme, view/frontend/web/svg/heroicons/solid

Which sets are offered is set under Stores > Configuration > Hyvä Commerce > Hyvä CMS > Icon Picker, Lucide only by default. The setting filters the picker, never the rendering.

The icons bundled with this module are deliberately not offered, but a stored library/star, or a bare legacy value such as star, keeps resolving and rendering.

After adding, removing or overriding an SVG:

bin/magento cache:clean hyva_cms

docs/icon_picker.md covers the rest: using the field in a component, theme icons and overrides, declaring your own icon sets, the multi-theme badges, graceful degradation, and cache behaviour.

Support

For further information, contact us:

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details.

That's all folks!