Sha256: 47ae126e8847a6631afe108b1c7edd511ed85b9b3ae0d819ab3d19f427557e34

Contents?: true

Size: 873 Bytes

Versions: 28

Compression:

Stored size: 873 Bytes

Contents

<% content_for :title, "#{@component_example.name} example - #{@component_doc.name} component" %>
<%= render 'govuk_publishing_components/components/title', title: @component_example.name, context: "#{@component_doc.name} example", margin_top: 0 %>

<div class="component-show">
  <div class="component-doc">
    <div class="component-markdown">
      <%= raw(@component_example.html_description) %>
    </div>
    <h2 class="component-doc-h2">How it looks</h2>
    <%= render partial: "govuk_publishing_components/component_guide/component_doc/preview", locals: { component_doc: @component_doc, example: @component_example } %>

    <h2 class="component-doc-h2">How to call this example</h2>
    <%= render partial: "govuk_publishing_components/component_guide/component_doc/call", locals: { component_doc: @component_doc, example: @component_example } %>
  </div>
</div>

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
govuk_publishing_components-21.38.4 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.38.3 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.38.2 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.38.1 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.38.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.37.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.36.1 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.36.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.35.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.34.1 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.34.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.33.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.32.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.31.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.30.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.29.1 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.29.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.28.1 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.28.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.27.1 app/views/govuk_publishing_components/component_guide/example.html.erb