Components › Blocks
FAQ section
A page section of questions and answers, one open at a time.
Installation
npx plankui@latest add faq-sectionUsage
import { FaqSection } from "@/components/ui/faq-section";
<FaqSection items={[{ question: "Do you offer refunds?", answer: "Within 14 days." }]} footer={<a href="/contact">Ask us</a>} />API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| items | { question, answer }[] | required | The questions and answers. |
| title / description | ReactNode | "Frequently asked questions" | The heading and a line under it. |
| footer | ReactNode | A line under the list. |