I created a light switch box that would hold a DaierTek KCD1-101 Mini Rocker Switch that is used to turn on/off my light bar on my Prusa i3 MK3S. There are 2 holes in the back of the box that face upwards and downwards for routing the wires up to the light and down to the power source. I also included 2 holes lengthwise through the box for using long zipties to secure it to the frame.
Link to switches that I used:
https://www.amazon.com/dp/B07S2QJKTX
The author hasn't provided the model origin yet.