<%= render 'govuk_publishing_components/components/title', title: GovukPublishingComponents::Config.component_guide_title, margin_top: 0 %>

Components are packages of template, style, behaviour and documentation that live in your application.

A component must:

See the govuk_publishing_components gem for further details, or a list of all component guides.

<% unless ENV["MAIN_COMPONENT_GUIDE"] %>

Gem components used by this app (<%= @components_in_use_docs.length %>)

<%= render "govuk_publishing_components/components/details", { title: "Suggested Sass 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 } %> <% end %>

<% end %> <% unless ENV["MAIN_COMPONENT_GUIDE"] %>

Components in this application (<%= @component_docs.length %>)

All gem components (<%= @gem_component_docs.length %>)

<% end %>