A spring plunger or detent spring is a spring-loaded mechanical part used for indexing, positioning, and securing of objects, as well as for making objects possible to disassemble in normal use without loosing parts. The spring force keeps the pin in position during normal use.
Typically, it is a machine part consisting of a hollow cylinder with an internal compression spring acting on a pin. The pin may, for example, be shaped as a rod with either a cylindrical or rounded tip (broadly categorized as a spring plunger), or a spring-loaded ball (ball plunger) if the spring acts against a ball.