Skip to content
Component Content FreeClaude prompt

FAQ Accordion

Searchable FAQs with topic filters and structured data

by Haptags Studio · Updated Sept 2026
Live demo — try it hereOpen in new tab ↗

About this component

Answer the questions that stop people buying — and let them find answers instantly. Search highlights matches as they type, and topic pills narrow the list.

Highlights

  • Live search with highlighted matches
  • Topic filter pills
  • One answer open at a time
  • Smooth CSS height animation
  • FAQPage structured data built automatically
✦ Free Claude prompt

Build it with Claude

Add your details, copy the prompt and paste it into Claude. You'll get copy-paste code you can add to any website.

  1. Fill in your details
  2. Copy the prompt
  3. Paste into Claude & press Enter
#2563eb
faq-accordion-prompt.txt · 16 lines Copy & open Claude ↗
Create an accessible FAQ section with instant search and topic filters as ONE self-contained snippet (HTML + <style> + <script>, every class prefixed "faq-").

CONTENT
- Business: [Your business name]
- Write 7 realistic FAQs for my business across 4 topics: Orders, Payments, Delivery and Returns (mention ₹ amounts and Indian payment methods like UPI where relevant). I'll edit them later.
- At the bottom, a "Still have a question?" strip with a WhatsApp button for [Your WhatsApp number]

BEHAVIOUR & DESIGN
- A large search input with a magnifier icon; typing filters questions and answers live, highlights matches with <mark> and automatically opens matching answers
- Topic pills (All + the 4 topics) that work together with the search
- Only one answer open at a time, a smooth height animation using grid-template-rows (0fr → 1fr), a "+" icon that rotates into "×", and aria-expanded on every question button
- A friendly empty state when nothing matches
- Generate FAQPage JSON-LD from the questions on the page with JavaScript
- White cards (18px radius) on a soft gradient, "Outfit" for the heading and "Inter" for text, accent colour #2563eb

Return the snippet in one code block.
Highlighted words update as you type. Anything in [square brackets] is yours to fill in.
Copied! Now open Claude, paste with Ctrl+V (⌘V on Mac) and press Enter.

Tip: Claude can keep editing for you — try follow-ups like “make the header sticky”, “add a photo gallery” or “translate the page into Kannada”.

FAQ

Do I need to know how to code?

No. Claude writes all the code. You only need to copy the prompt, paste it into Claude and save the file it gives you. If you get stuck, message us — we're happy to help.

Can I use it for my business?

Yes — free items are free for personal and commercial use, with no attribution required.

Can Haptags build it for me instead?

Yes. We can customise this design with your content, connect your domain and WhatsApp, and publish it for you. Book a free consultation to get a quote.

FreeFAQ Accordion Get the prompt
Marketplace
Talk to us
📞 Phone:+91 99868 61402
✉️ Email:info@haptags.com
🔐 Client login