Onions can be nasty in pets. They lead to anemia, destroying red blood cells. If it ate enough, the cat will develop signs in a couple days (lethargy, vomiting, diarrhea, and if really nasty the urine will turn redish). If signs develop you should take her somewhere, otherwise it should recover...