<%= @component.title %>

<% if @component.stubs? %> <% if @component.stubs_correct_format? %> <% if @component.stubs_extra_info? %>

<%= @component.stubs_extra_info %>

<% end %> <% if @component.component_stubs? %> <% @component.component_stubs.each_with_index do |component_properties, index| %>
<%= render_component @component.name, component_properties.clone %>

<%= @component.title %> <%= index + 1 %>

<%= render_component("<%= @component.name %>", {properties as below}) %>
<%- formatted = JSON.pretty_generate component_properties %>
<%= formatted.gsub(/\"(\S+)?\":/, '\1:') %>
<% end %> <% end %> <% else %>

Hint:You have Stubs but they don't follow the correct format

<% end %> <% else %>

Hint:To see your component make sure you've created stubs:

<% end %>