Police smashed their way into a flat in Lidgate Gardens in Batley Carr and emerged carrying Shannon, neighbours said.
The young girl looked "quite calm" and officers confirmed she was OK.
A local resident, who did not want to give her name, said: "One of my neighbours heard banging.
"When he went outside, police were breaking the door down - the man wouldn't come out so they broke in. Apparently they found her in bed."
Earlier reports claimed the little girl was found hiding under a bed in a her grandparents' home.
Source