1. Component Guide
  2. Success alert
  3. With message and description
Success alert example

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>")
} %>