Like most things, it depends. I've given employers no time up to 4 weeks. Smaller ones will definitely receive more grace if they have been good to me. And, when I was an employer I tried to do the same for others.
Another note is that I'm always succession planning. Document, share what I'm doing, etc... I learned early on that if I couldn't be replaced, I also couldn't be promoted.