Custom component that store a dictonary like values

Hi all, I am trying to develop a custom components (ideally would go into helper category) to store an arbitrary “config-like” values.
Think of it as a sensor that store a bunch of key / value pairs (or dictionary like).

I tried with a simple idea with two basic text field
ha_helper
The “name” field is what I want the component to be “named”.
The key / value fields are the ones that I want to “replicate” n times.
Ideally I “want” a “plus” button so the user could add a second (and a third, fourth, and so on …) key / value pair, staying in the same form.
All of these key / value pairs should be “contained” into the same sensor.

How can I achieve such a thing?
I tried to read the code of the existing helpers to take inspiration, with no luck (maybe I searched the wrong thing :sweat_smile:)