PHPackages                             municipio/wp-plugin-hbg-component-library - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. municipio/wp-plugin-hbg-component-library

ActiveWordpress-muplugin[Utility &amp; Helpers](/categories/utility)

municipio/wp-plugin-hbg-component-library
=========================================

A library of components for use in WordPress

2025.12.0(6mo ago)0491↑331.3%2GPL-2.0-or-laterPHPPHP ^8.0

Since Nov 13Pushed 6mo agoCompare

[ Source](https://github.com/municipio-se/wp-plugin-hbg-component-library)[ Packagist](https://packagist.org/packages/municipio/wp-plugin-hbg-component-library)[ RSS](/packages/municipio-wp-plugin-hbg-component-library/feed)WikiDiscussions v25.x Synced today

READMEChangelogDependencies (3)Versions (4)Used By (2)

HBG Component Library
=====================

[](#hbg-component-library)

This plugin is a [Municipio LTS](https://github.com/municipio-se/municipio-lts)version of Helsingborg stad's [Component Library plugin](https://github.com/helsingborg-stad/component-library).

Fork Base
---------

[](#fork-base)

This LTS fork is based on upstream tag [`4.11.6`](https://github.com/helsingborg-stad/component-library/tree/4.11.6), commit [`cf6f319d`](https://github.com/helsingborg-stad/component-library/commit/cf6f319d735a06a488741a1cd046ef38a5c732a9).

Changes in this Fork
--------------------

[](#changes-in-this-fork)

This LTS version includes important security enhancements and accessibility improvements. A comprehensive XSS protection framework has been implemented with TagSanitizer and ID sanitization to remove potentially harmful spaces from user input.

Accessibility has been significantly improved through fixes to aria attributes across multiple components including drawer menus, steppers, and removal of invalid aria-labelledby attributes. Icons are now decorative by default, and misleading alt text has been removed from subfooter logotypes.

New features include datalist support for form fields, the ability to override viewbox width in Brand components, and improved context handling for card tags. Navigation components now properly handle target attributes using null coalescing operators.

Various bugs have been fixed including issues with box blade templates, signature update time handling, and proper language loading when used as an MU plugin. The fork also includes updated package configurations and streamlined development workflows.

Installation
------------

[](#installation)

1. Install the package: ```
    composer require municipio/wp-plugin-hbg-component-library
    ```
2. Activate the plugin in WordPress.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance68

Regular maintenance activity

Popularity15

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor3

3 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

186d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3590?v=4)[Tom Clark](/maintainers/whitespace)[@Whitespace](https://github.com/Whitespace)

---

Top Contributors

[![NiclasNorin](https://avatars.githubusercontent.com/u/103985736?v=4)](https://github.com/NiclasNorin "NiclasNorin (237 commits)")[![annalinneajohansson82](https://avatars.githubusercontent.com/u/232372534?v=4)](https://github.com/annalinneajohansson82 "annalinneajohansson82 (146 commits)")[![ergr1001](https://avatars.githubusercontent.com/u/97021637?v=4)](https://github.com/ergr1001 "ergr1001 (97 commits)")[![faejr](https://avatars.githubusercontent.com/u/752642?v=4)](https://github.com/faejr "faejr (46 commits)")[![nRamstedt](https://avatars.githubusercontent.com/u/16800993?v=4)](https://github.com/nRamstedt "nRamstedt (41 commits)")[![sebastianthulin](https://avatars.githubusercontent.com/u/797129?v=4)](https://github.com/sebastianthulin "sebastianthulin (34 commits)")[![malinkytta](https://avatars.githubusercontent.com/u/113056103?v=4)](https://github.com/malinkytta "malinkytta (31 commits)")[![alexanderbomanskoug2](https://avatars.githubusercontent.com/u/39676080?v=4)](https://github.com/alexanderbomanskoug2 "alexanderbomanskoug2 (30 commits)")[![thorbrink](https://avatars.githubusercontent.com/u/1064724?v=4)](https://github.com/thorbrink "thorbrink (27 commits)")[![cedrikvonheiroth](https://avatars.githubusercontent.com/u/64852452?v=4)](https://github.com/cedrikvonheiroth "cedrikvonheiroth (24 commits)")[![jeanfredrik](https://avatars.githubusercontent.com/u/8242740?v=4)](https://github.com/jeanfredrik "jeanfredrik (19 commits)")[![Muckbuck](https://avatars.githubusercontent.com/u/11438804?v=4)](https://github.com/Muckbuck "Muckbuck (17 commits)")[![silvergrund](https://avatars.githubusercontent.com/u/4200504?v=4)](https://github.com/silvergrund "silvergrund (7 commits)")[![RuslanaLogosha](https://avatars.githubusercontent.com/u/63247495?v=4)](https://github.com/RuslanaLogosha "RuslanaLogosha (6 commits)")[![mikael-stromgren](https://avatars.githubusercontent.com/u/8775561?v=4)](https://github.com/mikael-stromgren "mikael-stromgren (4 commits)")[![johanwestin](https://avatars.githubusercontent.com/u/411063?v=4)](https://github.com/johanwestin "johanwestin (4 commits)")[![mikael102030](https://avatars.githubusercontent.com/u/184387911?v=4)](https://github.com/mikael102030 "mikael102030 (4 commits)")[![osandell](https://avatars.githubusercontent.com/u/83674246?v=4)](https://github.com/osandell "osandell (3 commits)")[![degeer](https://avatars.githubusercontent.com/u/282174?v=4)](https://github.com/degeer "degeer (2 commits)")[![Sven65](https://avatars.githubusercontent.com/u/10225982?v=4)](https://github.com/Sven65 "Sven65 (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/municipio-wp-plugin-hbg-component-library/health.svg)

```
[![Health](https://phpackages.com/badges/municipio-wp-plugin-hbg-component-library/health.svg)](https://phpackages.com/packages/municipio-wp-plugin-hbg-component-library)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
