Decorative is a concept of how much one will use in a dish. A small green onion may be used decoratively if it is one small amount in the dished, with the function of color and some taste.
Usually we think of a primary element's function will be major or decorative. Even rice is used decoratively, and bean may show up as a decorative ingredient also.