1. Component Guide
  2. Intervention
  3. With hide
Intervention example

With hide

This example is for when we want to hide by default and display to the user based on some logic, either in the backend or with Javascript.

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/intervention", {
  suggestion_text: "You should renew your permit every 6 months.",
  suggestion_link_text: "You may be invited to fill in a questionnaire",
  suggestion_link_url: "/questionnaire",
  hide: true
} %>