I will say againg
Some cheep LED assemblies are nothing more than a resistor and led in series.
They are easily dimmed by varying the resistor (or by putting a variable in series) but are also sensitive to battery, battery float, battery equalize or bulk charge. and tend to be damaged by the last two.
Others have a constant current regulator in series with the LED now these do vary a bit but for the most part are not affected by any of the different voltages mentioned above to dim them you use a PWM dimmer...
Some of them are not dimmable even with PWM
Some of them can handle 20 or 30 volts since the current regulator handles it. However the constant current regulator may fail at higher voltages.
The idiots who designed the Handle light on my RV used a 5 volt design.