156
A searchable FAQ with topic tabs and live counts, matches marked in place, answers that open on a smooth measured height, and a copy-link button on every question that deep-links straight to it.
akafaq·frequently asked questions·accordion
Run this in any project set up for the shadcn CLI. It copies the FAQ source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/faq.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { Faq } from "@/components/faq";
export default function Page() {
return <Faq />;
}A free React block in the Content collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the FAQ source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| eyebrow | string | "FAQ" |
| title | ReactNode | "Questions, answered" |
| description | ReactNode | — |
| itemsrequired | FaqItem[] | — |
| categories | string[] | — |
| contact | { title: string; text: string; label: string; href: string } | — |
| className | string | — |