<% horizontal = eq(comp.orientation, :horizontal) %>
<% if horizontal %>
<% for step in comp.steps %>
data-input-tag="<%= step.input_tag %>" <% end %> class="v-content v-step__content v-step__content-<%= step.id %> <%= ' is-active' if step.selected %> <%= ' v-step--horizontal' if horizontal %>"> <%= partial "components/render", :locals => {:components => step.components, :scope => nil} if step.components.any? %> <% if step.actions&.buttons %>
<% step.actions.buttons.each do |button| %> <%= partial "components/button", :locals => {:comp => button, data_attributes: "data-stepper-#{button.stepper_type}", event_parent_id: "#{step.id}-content"} if button %> <% end %>
<% end %>
<% end %>
<% end %>