1. Collections Component Guide
  2. Subscription links
  3. With copyable feed link
Subscription links example

With copyable feed link

This option changes the feed link to a toggle control, which opens a hidden element containing an input prepopulated with the value passed to the component, usually a URL to an atom feed. This uses the form input component.

Note that this option overrides the feed_link option, so if both are passed feed_link is ignored. Note that a value for email_signup_link can also be passed as normal.

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/subscription_links", {
  email_signup_link: "/foreign-travel-advice/singapore/email-signup",
  feed_link_box_value: "https://www.gov.uk/government/organisations/attorney-generals-office.atom"
} %>