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.27.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.26.2 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.26.1 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.26.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.25.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.24.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.23.1 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.23.0 app/views/govuk_publishing_components/component_guide/example.html.erb