How to write a letter of resignation??

I want to leave my current job. I know I have to write a formal letter and also give two weeks notice.

How do I go about doing this? Where do I even start on writing a letter saying I'm leaving? What do I include? Aghhh I've never had to do this before!

The worst part is my partner has been offered a job 160 miles south of us so he's moving down next week so they're going to think it's because of that (I was going to wait and follow him down when I went on maternity leave in September) but my health is declining a little due to pregnancy (I have hyperemesis so been throwing up to the point of fainting at work! And constantly feel sick! But I also have hypermobility so standing on my feet for 8-18 hours a day 6 days a week is just getting too much! I've already talked to management and had my hours reduced but it's not really helped