The rabbit in a hat trick is done with a hanging handkerchief. The rabbit is wrapped in it and it hangs like a bag on the back of the table. The magician flips the hat and puts the rabbit inside, sets it upside down, unfastens the handkerchief and pulls the rabbit out of the hat.

Interesting...