Skip to content
PixiKit

Fold List

A question and answer accordion with a smooth fold, a plus that turns into a minus, a tinted open row with an accent bar, and a search field that highlights matches and opens the rows they appear in.

pixikit.com/docs/blocks/faq/fold-list

Customize

Multiple
Searchable
Layout
Numbered

Props

13
NameTypeDefaultDescription
eyebrowstring"FAQ"Small label above the heading. Leave empty for none.
headingstring"Questions, answered"The heading of the section. Leave empty for none.
leadstring"Short answers to what people ask us most."The line under the heading. Leave empty for none.
itemsFoldListItem[]DEFAULT_ITEMSThe questions and answers, one row each.
multiplebooleanfalseLet several rows stay open; off, opening one closes the others.
defaultOpennumber | null0The row that is open at first, or null for none.
searchablebooleantrueShow the search field.
searchPlaceholderstring"Search questions"Placeholder and label of the search field.
emptyTextstring"No question matches"Shown when nothing matches.
countLabelstring"Questions: {n}"The line that announces the result count; {n} is the number.
layout"stack" | "split""split"Heading beside the list in a wide container, or everything in one centred column.
numberedbooleanfalseShow a small index before each question.
classNamestringNone

Related