Oh what a lovely phase this is!
We had this with dd2 (and just about every other variation on the tantrum spectrum). If I can ignore it I do and just walk away, as Mars says. If she does it at the table or somewhere else that's right in my face I'd put her outside the door, or in the corner, just to make the point that this is not an okay way to carry on.
But don't make a big scene over it, that just feeds the tantrum.