As long as the employer/employee relationship exists in compliance with the H-1B requirements, you are in valid status. Just like other workers, you may be on vacation, sick/maternity/paternity leave, on strike, or otherwise inactive without affecting your status.