Voom::Presenters.define('component_menu') do helpers Voom::Presenters::Helpers::Inflector menu side: :left do %i( cards lists expansion_panels tables text_fields selects buttons fabs fabs_mini dialogs layouts headers drawers footers menus toggles chips snackbar badges tooltips hidden_fields text_areas steppers sliders tab_bars content icons datetime_fields date_fields time_fields maps file_inputs ).sort.each do |comp| item titleize(comp) do event :click do loads comp end end end end end