California Motor Vehicle Code 21703, Following too Closely, appears to be applicable in this situation.
It is the duty of the party behind you to ensure proper stopping distance. I doubt that you slammed on your brakes before entering the driveway, and therefore have no liability for being...