Marketing section
FAQ
Wire it up
All optional. With none, it plays exactly as it does here and hands over to whoever touches it.
<FAQ
questions={questions}
product={product}
multiple={multiple}
onAsk={(query) => {}}
onContact={() => {}}
onFeedback={(id, helpful) => {}}
/>Your data
questionsThe questions. Topics come from them, in the order they first appear.
{ id, topic, q, a }[]productThe product’s name, wherever the default questions name it.
string'Detent'multipleLet more than one answer be open at once.
booleanfalseeyebrowThe small accent line above the heading.
string'Questions'titleThe heading, set in two tones.
[string, string]sublineOne sentence under the heading.
stringWhat it tells you
onAskCalled with what a person searched for when nothing answers it.
(query: string) => voidonContactCalled when a person asks to talk to someone.
() => voidonFeedbackCalled when a person says whether an answer helped. The script doesn’t call it.
(id: string, helpful: boolean) => voidEvery block also takes accent, the one colour everything in it derives from; autoplay, which plays the demo until someone touches it; and className.