Simple gravity latch, it can be print in place but that leaves it feeling a bit scratchy. I used two 6mm x 1.7mm neodymium magnets in case gravity wasn't enough, they just friction fit into place, using a soldering iron to push into place
Printed with PETG, with supports on bed only.
Magnets: https://www.amazon.com/dp/B09WN7ZFD7
The author marked this model as their own original creation.