FAQ Accordion
A searchable FAQ section with category filters, highlighted matches, smooth accordions, per-answer feedback, and a support call-to-action.
Overview
About the FAQ Accordion
A searchable FAQ section with category filters, highlighted matches, smooth accordions, per-answer feedback, and a support call-to-action. It is delivered as editable TypeScript for React. Tailwind CSS is required because the delivered pricing page JSX uses utility classes. Its focused API can be adapted to your own content and visual system.
Usage
When to use it
- Pricing and product pages that need to resolve objections before checkout.
- Help centers and onboarding pages where visitors search for answers by keyword.
What’s included
Files installed with the component
FAQ Accordion source
components/faq-accordion.tsxEditable React and TypeScript component source.
Working example
examples/example.tsxA minimal import and render example that matches the packaged API.
Installation guide
README.mdManual ZIP installation, styling, compatibility, asset, and usage notes.
Usage
Import and render
Copy the packaged source to the documented path, then use the public API shown below.
import FaqAccordion from "@/components/faq-accordion";export default function FaqSection() {
return <FaqAccordion />;
}Props
Component API
The current source has no public props; edit the typed categories and FAQ data in the source file and connect the feedback buttons to your analytics.
Compatibility
Verified project setup
- ReactLoom's preview is tested with Next.js 16.3.8 App Router, React 19.2.8, TypeScript 5.9.3, and Tailwind CSS 4.3.3. This describes the store environment, not the product's minimum requirements.
- This interactive component includes the "use client" directive and must remain behind a Client Component boundary in the Next.js App Router.
- Tailwind CSS is required because the delivered pricing page JSX uses utility classes.
- Images
- No image files are included. All visuals are inline SVG and CSS contained in the component source.
- Fonts
- No font files are included. The component uses system font fallbacks unless your app supplies a matching font.
Installation
Add it to your project
Download the FAQ Accordion ZIP, place the source file at src/components/faq-accordion.tsx, and copy the example into your own page or feature folder.
Target path
src/components/faq-accordion.tsxNo additional npm runtime packages are required beyond the React host; follow the styling requirements below.
Styling requirements
- Tailwind CSS is required by the component source.
- ReactLoom verifies this source with Tailwind CSS 4.3.3; other Tailwind versions have not been verified.
- Keep the component and example paths in Tailwind's source detection scope.
- ReactLoom's product-preview-viewport rules are store-only preview adaptations and are not part of the delivered component.
- For the verified Next.js and Tailwind CSS 4 setup, register @tailwindcss/postcss in postcss.config.mjs.
- Import tailwindcss from the application's global CSS entry point.