<% 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" %>
<%= render "govuk_publishing_components/components/govspeak", content: raw(@component_example.html_description) %>

How to call this example

<%= render partial: "govuk_publishing_components/component_guide/component_doc/call", locals: { component_doc: @component_doc, example: @component_example } %>

How it looks

<%= render partial: "govuk_publishing_components/component_guide/component_doc/preview", locals: { component_doc: @component_doc, example: @component_example } %>