Secondary navigation example
Default
How it looks (preview)
How to call this example
<%= render "components/secondary_navigation", {
aria_label: "Document navigation",
items: [
{
label: "Document",
href: "government/admin/editions/:id\"",
current: true,
data_attributes: {
gtm: "document-tab"
}
},
{
label: "Attachments",
href: "/government/admin/editions/:id/attachments\"",
data_attributes: {
gtm: "attachments-tab"
}
}
]
} %>