Related items: External links

Headed sections of related items.

Accepts an array of sections. Each section can have a title, url, id and a list of related items.

Each item is a hash with a title and url. If the url is external, a rel value can also be provided.

How to call this component

<%= render partial: 'govuk_component/related_items', locals: { sections: [ { title: "Elsewhere on the web", id: "related-elsewhere-on-the-web", items: [ { title: "Wikivorce", url: "", rel: "external" } ] } ], related_items: null } %>

How this component looks