Comedic actress who became known for her roles in Nick and Norah's Infinite Playlist and the Thor films. Her roles in The 40-Year-Old Virgin and Big Momma's House brought her additional recognition. She also starred on the TV series 2 Broke Girls from 2011 until 2017.
She made her acting debut at age 10 in an ad for potato chips.
She made her first appearance in a guest role on a 2000 episode of HBO's Sex and the City.
She dated actor Matthew Gray Gubler in 2007. From 2011 until 2014 she dated actor Nick Zano. She then began dating singer Josh Groban in 2014 up until the couple split in 2016. She became engaged to musician Andrew W.K. in May 2021.
She starred in the 2007 film Charlie Bartlett, as the daughter of Robert Downey, Jr.'s character.