Shelf Catch
Print-in-place catch for hinged shelf or desk. Mount it where the shelf touches the wall on top when folded up. Holds securely until you push in the textured button.
As with all print-in-place joints, printing at the highest resolution you can stomach will make for a higher quality joint.
Go to Tinkercad to adjust as you like: https://www.tinkercad.com/things/aCPimgeXP5u