Secondary navigation example

Default

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/secondary_navigation", {
  id: "nav_1234",
  aria_label: "Document navigation",
  items: [
    {
      label: "Tab 1",
      href: "#1",
      current: true,
      data_attributes: {
        gtm: "tab"
      }
    },
    {
      label: "Tab 2",
      href: "#2",
      data_attributes: {
        gtm: "tab"
      }
    },
    {
      label: "Tab 3",
      href: "#3",
      data_attributes: {
        gtm: "tab"
      }
    }
  ]
} %>