An inductor is a passive electronic component that stores energy in a magnetic field when current flows through it.