Skip to content

Open card FAQ in React

All answers visible at once, presented as a card grid.

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

Open in a new tab

The code in React

OpenCardFaq.tsx
export function OpenCardFaq() {
  return (
    <div className="mx-auto w-[min(100%_-_2rem,60rem)] py-8">
      <section>
        <h2 className="mb-6 text-3xl font-bold">Bon à savoir</h2>
        <dl className="grid gap-4 min-[700px]:grid-cols-2">
          <div className="rounded-l rounded-r-[14px] border-l-4 border-orange-500 bg-white p-5.5 dark:border-orange-400 dark:bg-[#24120a]">
            <dt className="mb-2 font-bold">Combien de temps dure une séance ?</dt>
            <dd className="leading-relaxed text-[#7a3b1f] dark:text-[#f5b996]">
              Une heure, échauffement et étirements compris. Le bilan initial dure une heure trente.
            </dd>
          </div>

Free component: copy it freely, including for commercial projects.

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
    Component
  • An introduction and a contact link on the left, expandable questions on the right.

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

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Questions grouped under subheadings, for long FAQs.

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

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Questions that expand one by one, with FAQPage structured data for Google.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component