Hyva Icons Flags
siteation/magento2-hyva-icons-flags
Enables the use of Flagpack icons in Hyvä themes. Allows embedding SVG flag icons in CMS content, pages, blocks, and widgets.
Supported Magento versions: 2.4.9
23,757 installs★ 8 starsLatest: v1.0.3Released 2024-11-30License: MIT
composer require siteation/magento2-hyva-icons-flagsREADME
Reproduced from the package’s own README, under its own license, as of 2026-09-13. Links and images point back at the source repository.
This Magento 2 module adds the option to use Flagpack icons in your Hyvä frontend.
This requires that you have a working Hyvä frontend, this icon pack was made specifically for Hyvä Themes and will not work out of the box with any other frontend.
Install the package via;
composer require siteation/magento2-hyva-icons-flags bin/magento setup:upgrade
Warning This Module requires Magento 2.4 or higher and requires Hyvä! For more requirements see the
composer.json.
By default this module loads nothing.
To use this icon pack instead of the default Hyvä icons, add the following to your phtml file;
<?php use Hyva\Theme\Model\ViewModelRegistry; use Siteation\HyvaIconsFlags\ViewModel\FlagsIcons; /** @var ViewModelRegistry $viewModels */ /** @var FlagsIcons $flagsIcons */ $flagsIcons = $viewModels->require(FlagsIcons::class);
and use the FlagsIcons just as the HeroIcons in Hyvä;
<?= $flagsIcons->nlHtml('p-1', 24, 24, ["aria-label" => "Netherlands"]) ?>
You can now also use the SVG icons in your CMS content.
Bringing svg icon support to you CMS pages, Blocks and Widgets.
{{icon "flags/nl"}}For more information on how and what see the Hyvä Docs
This feature is supported since Hyvä v1.1.12
- For Icons packs see https://github.com/topics/hyva-icons
If you are looking for a Luma based option checkout this icon pack instead.
Flagpack used in this module were created by Yummygum under a MIT License, found here
Links
- Packagist
- PackageMaven — quality data by PackageMaven
- Repository
- Issues