i think the electronics component for a dimmer is a TRIAC. you can control current with voltages or some such thing. its been a while since my electronics days.
also x10 (www.x10.com) has some dimming switches, i dunno if thats what you want. thats AC stuff mostly but you may be able to rig it.