Sha256: d9429d08ede10e6c70dd6f089fc1a4d376b304ebff18b0c6ddda023bf1c663f8

Contents?: true

Size: 819 Bytes

Versions: 5

Compression:

Stored size: 819 Bytes

Contents

<div class="mv-main__header">
  <h1><%= @component.capitalize %></h1>
</div>

<% styleguide_stubs(@component).each_with_index do |component_properties, index| %>
  <div class="mv-component">
    <div class="mv-component__item">
      <%= ui_component @component, component_properties %>
    </div>
    <div class="mv-component__description">
      <h2><%= @component.capitalize %> <%= index + 1 %></h2>
      <div class="mv-component__description__definition">
        <code class="language-ruby">&lt;%= ui_component("<%= @component %>", {properties as below}) %&gt;</code>
      </div>
      <%- formatted = JSON.pretty_generate component_properties  %>
      <pre class="mv-component__description__properties language-ruby"><code><%= formatted.gsub(/\"(\S+)?\":/, '\1:') %></code></pre>
    </div>
  </div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mountain_view-0.3.3 app/views/mountain_view/styleguide/show.html.erb
mountain_view-0.3.2 app/views/mountain_view/styleguide/show.html.erb
mountain_view-0.3.1 app/views/mountain_view/styleguide/show.html.erb
mountain_view-0.3.0 app/views/mountain_view/styleguide/show.html.erb
mountain_view-0.0.2 app/views/mountain_view/styleguide/show.html.erb