Tabs (experimental) example

Without ga4 tracking on tabs as links

Disables GA4 tracking on tabs as links. Tracking is enabled by default.

How it looks (preview)

Contents

How to call this example

<%= render "govuk_publishing_components/components/tabs", {
  as_links: true,
  disable_ga4: true,
  tabs: [
    {
      href: "/page1",
      label: "Link 1",
      active: true
    },
    {
      href: "/page2",
      label: "Link 2",
      active: false
    }
  ]
} %>