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)
How to call this example
<%= render "govuk_publishing_components/components/tabs", {
as_links: true,
ga4_tracking: true,
tabs: [
{
href: "/page1",
label: "Link 1",
active: true
},
{
href: "/page2",
label: "Link 2",
active: false
}
]
} %>