Components › Blocks

FAQ section

A page section of questions and answers, one open at a time.

Installation

npx plankui@latest add faq-section

Usage

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

PropTypeDefaultDescription
items{ question, answer }[]requiredThe questions and answers.
title / descriptionReactNode"Frequently asked questions"The heading and a line under it.
footerReactNodeA line under the list.

View the source on GitHub