A quick look with a search engine suggests that, while onions are toxic for cats, they'd not normally eat enough to harm them. My cats tend to shy away from them, and just the smell of onions on my hands annoys them. Oddly enough, they seem quite happy to chew on the chives in my garden! (They don't actually eat them though.)