Skip to content

Faq

Questions and answers: one open at a time, the first open, with a title and a way to ask more beside them.

import { Faq } from '@sypnia/ui/react'

On this page
  1. With Nia
  2. When to use it
  3. For everyone
  4. Props

With Nia

Questions

More questions? hello@sypnia.com
Is it really free?
The engine is open source under the MIT license. Run it yourself, free, forever.
Where is my data kept?
On your servers, or in the region you choose on Cloud.
Can I leave?
Export everything at any time, in open formats.
Code
import { Character, Faq } from '@sypnia/ui/react';

export default function Questions() {
  return (
    <Faq title="Questions" side={<div className="sy-row"><Character name="nia-watching" size="5rem" /><span className="sy-text--sm sy-text--soft">More questions? hello@sypnia.com</span></div>} items={[
      { q: 'Is it really free?', a: 'The engine is open source under the MIT license. Run it yourself, free, forever.' },
      { q: 'Where is my data kept?', a: 'On your servers, or in the region you choose on Cloud.' },
      { q: 'Can I leave?', a: 'Export everything at any time, in open formats.' },
    ]} />
  );
}

When to use it

Use it when

  • The questions people really ask before they start.

Do not use it when

  • Hiding what everyone needs: say it on the page.

For everyone

  • Native disclosures: Enter and Space open them, without JavaScript.

Props

FaqTypeDefault
itemsrequired { q: string; a: ReactNode; }[]
name string faq
side ReactNode
title ReactNode
  1. With Nia
  2. When to use it
  3. For everyone
  4. Props

    Search pages, sections and terms