All products

Design accordion sections with AI

Define how an FAQ or settings panel opens and closes. Decide where the click target should sit and whether several sections may stay open together.

When you design accordion sections with AI, consider the question a visitor is trying to answer. Someone checking a delivery FAQ may want one short answer and nothing else. Someone comparing two account settings may need both sections in view. The accordion-patterns skill helps describe those behaviours before the interface is built.

The whole header can act as the target, including a clear indicator of the current state. Use a sample with real headings and paragraphs. If a short or essential instruction is harder to find after you collapse it, keep it visible. A keyboard and accessibility check belongs in the implementation review as well.

What it does

  • Choose a starting state for a group of questions.
  • Let several settings panels remain open for comparison.
  • Make the full header easy to select on touch screens.
  • Use the indicator to reflect the section’s current state.
  • Identify information that should remain visible at all times.

Install and use

  1. Supply the proposed headings and content. Explain whether the sections answer unrelated questions or contain options the visitor must compare.
  2. Ask for the behaviour in a concrete case, such as opening delivery information after reading the returns conditions.
  3. Test a prototype on a small screen and with a keyboard. Revisit the headings if finding the right section involves trial and error.

FAQ

Source

Made by 0xDragoon. Original skill: accordion-patterns, published on GitHub under the MIT licence.

View on GitHub