Panel
The panel component is a visible container used on confirmation or results pages to highlight important content.
Panel with a title and one line of text
Input
= govuk_panel(title_text: "Application complete",
text: "You will soon receive an email confirmation.")
<%= govuk_panel(title_text: "Application complete", text: "You will soon receive an email confirmation.") %>
Panel with multiple lines of text
Any content passed in via the block will be rendered beneath the title.
Input
= govuk_panel(title_text: "Application complete") do
| Your reference number is
br
strong ABC123
<%= govuk_panel(title_text: "Application complete") do %>Your reference number is
<br />
<strong>ABC123</strong>
<% end %>