If it gets thrown, it gets taken away. If it's food it goes in the bin. At 2 she would get 1 chance (I'd pick it up and put it back once) closer to 3 she would get none. If it's toys they go away for a period of time - an hour, a day - whatever feels appropriate.
If she hits you say no, we don't hit and move away. It's like grey rock, you don't give any reaction, neutral face. If she follows you hitting then you hold her hands to prevent her from hitting you while telling her calmly that it's not ok to hit and you won't let her hit you.