Previous and next navigation: Both previous and next

Navigational links that allow users navigate within a series of pages or elements.

This component accepts 2 optional parameters, previous and next.

Each optional parameter accepts:

If one of the 2 parameters is nil, no link will appear.

How to call this component

<%= render partial: 'govuk_component/previous_and_next_navigation', locals: { previous_page: { url: "previous-page", title: "Previous page", label: "1 of 3" }, next_page: { url: "next-page", title: "Next page", label: "3 of 3" }, previous_and_next_navigation: null } %>

How this component looks