Most have a low resistance element in the current path that heats up depending on its rated current. This causes a deflection of a bi metallic strip which operates a mechanical trip to open the circuit.
I believe some like Merlin Gerin incorporate a magnetic function also.