Daniel, you will need to pull the toggle switch out, cut and tape the wires, then shop for your 12 volt dimmer switch that will fit in the same space. Keep in mind that those 5 LED's you're using aren't built for dimmer use. They may not last very long. Contact these people for more detailed help:
https://www.commandelectronics.com/