Basker Docs

Accordion

A list of headings that expand to reveal their content, for FAQs, access information, and other content readers scan before they read.

The Accordion block stacks a set of headings that open to show their content. Readers see the list of topics first and open only the ones they want.

Use it where content is long, optional, or looked up rather than read through: frequently asked questions, access and travel information, ticketing terms, or program notes.

Content

  • Title and Description: optional wording above the list.
  • Items: the rows of the accordion. One is required, and you can add as many as you need.

Open an item to set:

  • Heading: the wording on the row a reader clicks. Required.
  • Body: the content revealed when the row opens. It takes formatted text, links, and lists, with headings from H3 to H6 for structure inside a long answer.
  • Open by default: show this item already expanded when the page loads. Off by default. Use it for the one answer most readers need.

Layout

  • Allow multiple open: off by default, so opening one item closes the one before it. Turn it on to let readers open several at once and compare them.
  • Title Paragraph Style: the paragraph style of the block title. The default is H3. Turn on Customise to set the Title Font.
  • Item Heading Paragraph Style: the paragraph style of each row's heading. The default is H6.
  • Style: Divided (default) separates rows with a rule. Bordered draws a border around each row.
  • Icon: Arrow or Plus.
  • Icon Style: Text, Filled, or Outlined.
  • Corners: Square, Rounded, or Round.
  • Width: Full Width, Page (default), Narrow, Reading, or Custom. Custom adds a Custom Width slider from 200 to 2000 px (default 1200 px). A narrow measure is easier to read for long answers.

Shared controls

You can add an Accordion to the page body, inside a Group, and inside a Section.

Example: a visitor FAQ

Add an Accordion below the main content of a "Plan your visit" page. Set the Title to Frequently asked questions. Add an item per question — What time should I arrive?, Is there step-free access?, Can I bring a drink in? — and write each answer in the Body.

Turn on Open by default for the arrival-time item so the most-asked answer is visible. Leave Allow multiple open off so the list stays short as readers work down it. Set Width to Narrow to keep the answers to a readable measure.

Where to go next

On this page