This is the content for Writing well for the web.
Without ga4 tracking
Disables GA4 tracking on the accordion. Tracking is enabled by default. This adds a data module and data-attributes with JSONs to the accordion. See the ga4-event-tracker documentation for more information.
How it looks (preview)
This is the content for Writing well for specialists.
How to call this example
<%= render "govuk_publishing_components/components/accordion", {
disable_ga4: true,
items: [
{
heading: {
text: "Writing well for the web"
},
content: {
html: sanitize("<p class=\"govuk-body\">This is the content for Writing well for the web.</p>")
}
},
{
heading: {
text: "Writing well for specialists"
},
content: {
html: sanitize("<p class=\"govuk-body\">This is the content for Writing well for specialists.</p>")
}
}
]
} %>