1. Collections Component Guide
  2. Step by step navigation related links
  3. With more than one link
Step by step navigation related links example

With more than one link

If more than one link is passed to the component it should output them as a list outside of the heading.

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/step_by_step_nav_related", {
  links: [
    {
      href: "/learn-to-drive-a-car",
      text: "Learn to drive a car: step by step"
    },
    {
      href: "/learn-to-drive-a-motorbike",
      text: "Learn to drive a motorbike: step by step"
    }
  ]
} %>