I have 6 pieces on the inside of my Ikea Platsa shelf. Glued to the inside of the doors to save space.
There will be 9x10 mm × 3 mm neodym magnets used.
Simply press in.
I stuck thin foam rubber over it. But it doesn't have to