Sha256: 7f29c685f4456dd9720e2814f61894977f837f5b31690fc106762a13fc4f0dfa

Contents?: true

Size: 858 Bytes

Versions: 38

Compression:

Stored size: 858 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" %>

<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

38 entries across 38 versions & 1 rubygems

Version Path
govuk_publishing_components-21.22.2 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.22.1 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.22.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.21.3 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.21.2 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.21.1 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.21.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.20.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.19.1 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.19.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.18.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.17.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.16.3 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.16.2 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.16.1 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.16.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.15.2 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.15.1 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.15.0 app/views/govuk_publishing_components/component_guide/example.html.erb
govuk_publishing_components-21.14.0 app/views/govuk_publishing_components/component_guide/example.html.erb