1. Component Guide
  2. Notice
  3. With banner title
Notice example

With banner title

By default, the notice component renders with a banner title of “Important” if show_banner_title is true.

How it looks (preview)

Important

This publication was withdrawn on 30 September 2015

This document is no longer current. We published a new version on 30 September 2015.

How to call this example

<%= render "govuk_publishing_components/components/notice", {
  title: "This publication was withdrawn on 30 September 2015",
  description_govspeak: sanitize("<p>This document is no longer current. We published a new version on 30 September 2015.</p>"),
  show_banner_title: true
} %>