With message and description
Descriptions can be passed as plain text but it is strongly recommended that you pass these as html, cleaned using raw
or sanitize
.
How it looks (preview)
How to call this example
<%= render "govuk_publishing_components/components/success_alert", {
message: "Message to alert the user to a successful action goes here",
description: sanitize("<p class=\"govuk-body\">A further description</p>")
} %>