FAQ Section
Animated accordion FAQ with single / double column layout
Quick Preview
Frequently asked questions
If the answer depends on your project or next step, use the guidance pages for more context.
Start with the Foundation Track if routing, layouts, and rendering boundaries still feel unclear. It gives you the right baseline before advanced patterns.
Basic React familiarity helps, but the examples are structured so you can learn Next.js concepts while reinforcing the React ideas that matter in practice.
Use the components as study material first. Understand the structure, props, and tradeoffs, then adapt them to your own project with intent.
Treat each showcase as a design study. Read the tokens, hierarchy, spacing, and motion decisions to understand why the identity feels coherent.
Move on once you can read a small Next.js project comfortably and understand how routes, layouts, styling, and component composition fit together.
Use the guidance pages. Mentoring helps with decisions, guided implementation helps with execution, and learning support helps you regain momentum.
Installation
// Copy the component fromsrc/components/sections/FAQSection.tsx
Usage
import { FAQSection } from '@/components/sections/FAQSection'const faqs = [{ question: 'Where should I start?', answer: 'Begin with the Foundation Track...' },{ question: 'Should I copy components directly?', answer: 'Study them first, then adapt them...' },]<FAQSection items={faqs} title="FAQ" />
Two-Column Layout
2-column FAQ grid
Two-column FAQ
If the answer depends on your project or next step, use the guidance pages for more context.
Start with the Foundation Track if routing, layouts, and rendering boundaries still feel unclear. It gives you the right baseline before advanced patterns.
Basic React familiarity helps, but the examples are structured so you can learn Next.js concepts while reinforcing the React ideas that matter in practice.
Use the components as study material first. Understand the structure, props, and tradeoffs, then adapt them to your own project with intent.
Treat each showcase as a design study. Read the tokens, hierarchy, spacing, and motion decisions to understand why the identity feels coherent.
Move on once you can read a small Next.js project comfortably and understand how routes, layouts, styling, and component composition fit together.
Use the guidance pages. Mentoring helps with decisions, guided implementation helps with execution, and learning support helps you regain momentum.
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | "Frequently asked questions" | Section heading |
subtitle | string | - | Section sub-heading |
items | FAQItem[] | - | Array of { question, answer } |
columns | 1 | 2 | 1 | Single or double column layout |
className | string | - | Additional CSS classes |
Features
- โAnimated open/close with max-height transition
- โSingle & double column layouts
- โOnly one item open at a time
- โAccessible aria-expanded attribute
- โClient Component (accordion state)