Huff has been getting treatment in Florida and is expected to rejoin the team Friday in San Francisco, where he will continue to get help.
Manager Bruce Bochy spoke with Huff on Wednesday afternoon after days of exchanging text messages. Asked whether Huff's anxiety was related to personal or baseball problems, Bochy said: "I don't know if he even knows. It could be both.
"We are always going to do all we can to help the player. That's the case with Aubrey."
On the field, Huff has been going through a rough stretch that bottomed out in Saturday's 5-4 loss to the New York Mets. He went 0-for-4, dropping his average to .182. He also made a crucial mental mistake, failing to cover second base, after being inserted at second for the first time in his career.
Huff also has been dealing with off-the-field issues. As first reported by CSN Bay Area and confirmed via court records, Huff's wife, Barbara, filed for divorce Jan. 31 in Hillsborough County, Fla.
Anxiety issues are not uncommon in baseball, especially recently. Joey Votto left the Cincinnati Reds in 2009, saying he was "totally overwhelmed" with grief and anxiety after the death of his father. Milwaukee Brewers right-hander Zack Greinke also has dealt with social anxiety disorder and nearly quit the game early because of it.
Bochy said he expects to address the team at some point but hadn't had that chance before Wednesday's 4-2 loss to the Reds. The news was met with surprise in the clubhouse.
"You all know Huffy, he keeps everybody loose — he reminds us all to have fun," starting pitcher Barry Zito said. "I'm not sure what to make of that."