1. Component Guide
  2. Intervention
  3. With dismiss link
Intervention example

With dismiss link

Name is required in order to set a cookie. The name value should be distinct to the campaign for the banner, so that other banners using this component are not hidden by accident.

How it looks (preview)

You should renew your permit every 6 months.

Hide this suggestion

How to call this example

<%= render "govuk_publishing_components/components/intervention", {
  suggestion_text: "You should renew your permit every 6 months.",
  dismiss_text: "Hide this suggestion",
  name: "campaign-name"
} %>