(CNN) Former Vice President Joe Biden said Wednesday he would consider Sen. Kamala Harris as a potential running mate, a day after she dropped out of the presidential race.

"Of course I would," Biden said. "Look, Sen. Harris has the capacity to be anything she wants to be. I mean it sincerely. I talked to her yesterday. She's solid, she can be president someday herself, she can be vice president, she could go on to be a Supreme Court justice, she could be attorney general. I mean she has enormous capability."

Harris, who was once seen as a leading contender in the race for the 2020 Democratic nomination, ended her campaign Tuesday due to financial pressures and after months of polling in single digits.

Harris and Biden have a complicated history.

Harris, a former attorney general of California, knew Biden's late son, Beau Biden, who served as attorney general of Delaware.

Read More