Two-column FAQ in React
An introduction and a contact link on the left, expandable questions on the right.
Here is an excerpt of this component's code in React. The full code is free for members, ready to copy into your project.
This component also comes in
The code in React
export function TwoColumnFaq() {
return (
<div className="mx-auto w-[min(100%_-_2rem,66rem)] py-8">
<section className="grid gap-8 min-[800px]:grid-cols-[1fr_1.6fr] min-[800px]:items-start">
<div className="min-[800px]:sticky min-[800px]:top-8">
<h2 className="mb-3 text-3xl font-bold">Vous avez des questions ?</h2>
<p className="mb-5 leading-relaxed text-[#48614f] dark:text-[#b2cbbb]">
Voici les réponses aux demandes les plus courantes. Pour le reste, notre équipe répond
sous 24 heures ouvrées.
</p>
<a
href="#contact"Free component: copy it freely, including for commercial projects.
Other FAQ and accordions components in React
FAQ and accordions components in React
A native accordion FAQ where each answer asks “Was this answer helpful?”, with a thank-you message and a remembered vote.
- Tailwind
- React
- CSS
- WordPress

A tight accordion within a single frame, for practical information pages.
- Tailwind
- React
- CSS
- WordPress

FAQ by category
FreeQuestions grouped under subheadings, for long FAQs.
- Tailwind
- React
- CSS
- WordPress

Open card FAQ
FreeAll answers visible at once, presented as a card grid.
- Tailwind
- React
- CSS
- WordPress

Frequently asked questions followed by a card inviting visitors to call or write.
- Tailwind
- React
- CSS
- WordPress

Accordion FAQ
FreeQuestions that expand one by one, with FAQPage structured data for Google.
- Tailwind
- React
- CSS
- WordPress