Accordion
A list of questions where one answer is open at a time, for the FAQ that closes a brochure page.
Questions
Each koala-accordion-item takes its question as an attribute and
its answer as child content. Opening one question closes the one that was open. Write the
questions the way a mover would ask them, and answer in plain words.
Open on first paint
open is the one-based question that starts expanded, so the first answer is
visible before anyone clicks. Leave it unset to start with every question closed.
Naming and analytics
name prefixes the answer ids, so give each accordion on a page its own; this
page holds three, named faq-closed, faq-open and
faq-agents. A data-analytics attribute on an item lands on its
toggle, so each question reports its own opens.
API
id prefix (default faq)one-based index (default none)textanalytics event name, moved to the toggle