Here is a bolt and nut for IKEA Hejne open closet.
Make sure to print the bolt in the horizontal direction( parallel to the bed) for stiffness. I suggest PLA but I think PETG can also work
The author marked this model as their own original creation.