Shyness in toddler
This kind of behavior, especially if it has gone on for more than several weeks, is outside of the normal range.
Consulting with a pediatrician would be a good idea. Sometimes kids develop reactions like this in response to a specific event that scared them, in which case it should pass after a few weeks. But if there is no known trigger event and it is persistent, see an md.