The onion is an edible bulb. While it is a vegetable at heart, it also acts as a spice inasmuch as it can provide an aromatic undertone to various meat and vegetable dishes without being a major ingredient. Onion is a basic flavoring in the kitchen.