Faq
Preguntas y respuestas: una abierta a la vez, la primera abierta, con un título y una forma de preguntar más al lado.
import { Faq } from '@sypnia/ui/react'
En esta página
Con 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.
Código
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.' },
]} />
);
} Cuándo usarlo
Úsalo cuando
- Las preguntas que la gente de verdad hace antes de empezar.
No lo uses cuando
- Ocultar lo que todos necesitan: dilo en la página.
Para todos
- Desplegables nativos: Enter y Espacio los abren, sin JavaScript.
Props
| Faq | Tipo | Por defecto |
|---|---|---|
itemsobligatorio | { q: string; a: ReactNode; }[] | |
name | string | faq |
side | ReactNode | |
title | ReactNode |