If you attach them to another metal frame or object they can stay there for as long as you like, they also come with an adhesive pad so be careful when using. That way the magnet can stay but the sticky pad can fail if you force it to hold a little weight, I don't know how much because I don't use them for that purpose.
50Pcs Strong Neodymium Magnets With Hole & Mounting Screws - Heavy Duty Rare Earth Disc Countersunk For Locker, Tool Storage & Crafts
31 Review
16-Pack Powerful Neodymium Bar Magnets | MIKEDE Rare Earth 𧲠Metal Magnets with Double-Sided Adhesive | 60 x 10 x 3 mm
35 Review
Pack Of 12 MIKEDE Neodymium Bar Magnets - Strong Rare Earth Metal Magnets With Double-Sided Adhesive - 60 X 10 X 3 Mm Size
41 Review
MIKEDE Strong Neodymium Disc Magnets, 16 Pack Powerful Permanent Rare Earth Magnets With Double-Sided Adhesive, Fridge, DIY, Building, Scientific, Craft, And Office Magnets, 1.26 Inch D X 1/8 Inch H
40 Review