Onions and garlic are a problem for cats. But most other veggies are fine.
My kitty used to chew on carrots when he was teething! One day I dropped half a carrot on the floor and he just started sinking his teeth into it. Once he got his adult teeth, he lost interest in carrots.