Danville Police Department Website: E-Bike & E-Scooter Laws
"In the Town of Danville, it is illegal for anyone to ride a bicycle, electric bicycle, electric skateboard, or electric scooter on the sidewalk in any business district. 
When selecting an e-bike or e-scooter for your child, or when enjoying motorized bikes yourself, it’s important to know the state and local laws that govern us of different classes of bikes and scooters. Rules and definitions outlined by the California Vehicle Code (CVC) for each type of bike and scooter are noted below."