%= render 'govuk_publishing_components/components/title', title: GovukPublishingComponents::Config.component_guide_title, margin_top: 0 %>
<% unless ENV["MAIN_COMPONENT_GUIDE"] %>
Gem components used by this app (<%= @components_in_use_docs.length %>)
<%= render "govuk_publishing_components/components/details", {
title: "Suggested imports for this application"
} do %>
<%= render "govuk_publishing_components/components/textarea", {
label: {
text: "Add this to your application's main scss file, before your other local imports."
},
name: "main-sass",
value: @components_in_use_sass
} %>
<%= render "govuk_publishing_components/components/textarea", {
label: {
text: "Add this to your application's print scss file, before your other local imports."
},
name: "print-sass",
value: @components_in_use_print_sass
} %>
<%= render "govuk_publishing_components/components/textarea", {
label: {
text: "Add this to your application's main js file, before your other local imports."
},
name: "main-js",
value: @components_in_use_js
} %>
<% end %>
<% end %>
<% unless ENV["MAIN_COMPONENT_GUIDE"] %>
Components in this application (<%= @component_docs.length %>)
All gem components (<%= @gem_component_docs.length %>)
<% end %>
If you cannot find a suitable component consider extending an existing component or creating a new one.