Single page notification button example
With custom button text
The component accepts custom button text, provided that both subscribe and unsubscribe text is provided.
How it looks (preview)
How to call this example
<%= render "govuk_publishing_components/components/single_page_notification_button", {
base_path: "/current-page-path",
js_enhancement: true,
button_text: {
subscribe: "Subscribe to this page of things",
unsubscribe: "Unsubscribe to this page of things"
}
} %>