fix: added 'Component' among the acceptable values for 'element' switch