MeDo

AI एकॉर्डियन जेनरेटर।

अपने सेक्शन बताएं और MeDo एक कोलैप्सिबल एकॉर्डियन जेनरेट करता है — सिंगल या मल्टी-ओपन व्यवहार, किसी भी लंबाई के कंटेंट के साथ काम करने वाला हाइट एनिमेशन, ऐसे डीप लिंक जो पैनल अपने आप खोल दें, और रिच रिज़ल्ट के लिए मैचिंग FAQPage JSON-LD।

एकॉर्डियन
एकॉर्डियन

बंद पैनल एक दांव है कि वह कंटेंट वैकल्पिक है

एकॉर्डियन आमतौर पर पेज को छोटा दिखाने के लिए जोड़े जाते हैं, लेकिन पेज छोटा करना मुफ़्त नहीं है। हर कोलैप्स्ड सेक्शन स्कैन करने की सुविधा को घनत्व से बदल देता है: जो विज़िटर छह जवाब सरसरी तौर पर पढ़ लेता, उसे अब तय करना पड़ता है कि किस पर क्लिक करे — और ज़्यादातर लोग किसी पर भी क्लिक नहीं करते। शिपिंग पॉलिसी, किनारे के मामलों वाले सवाल या लंबी स्पेसिफिकेशन टेबल जैसे वाकई गौण कंटेंट के लिए यह सौदा ठीक है, लेकिन उन दो-तीन जवाबों के लिए बुरा है जो असल में खरीद की आपत्ति दूर करते हैं। उपयोगी अनुशासन यह है कि सबसे ऊंचे इंटेंट वाले कंटेंट को एकॉर्डियन से निकालकर सामान्य पेज कॉपी में लाएं और लॉन्ग टेल को एकॉर्डियन में रहने दें। इससे इसी समस्या का SEO पहलू भी हल होता है, क्योंकि बंद पैनल के भीतर मौजूद टेक्स्ट जो HTML में है वह इंडेक्स होता है, जबकि सिर्फ क्लिक के बाद इंजेक्ट होने वाला टेक्स्ट इंडेक्स नहीं भी हो सकता।

6 टेम्पलेट

एकॉर्डियन टेम्पलेट जो आप जेनरेट कर सकते हैं

हर टेम्पलेट एक असली प्रॉम्प्ट है, स्क्रीनशॉट नहीं। इसे किसी भी AI एडिटर में कॉपी करें, या MeDo में चलाकर React + Tailwind कोड सीधे पाएं।

BasicFAQ Single-Open

Exclusive-Open FAQ List

One answer visible at a time, which keeps a long FAQ from turning into a wall once someone starts clicking. The default for landing-page questions.

Create an FAQ accordion with six items in single-open mode, where opening one item closes the currently open one. Each header is a full-width button carrying the question in 16px semibold text with a chevron on the right that rotates 180 degrees over 200ms; set aria-expanded on the button and aria-controls pointing at the panel, and give the panel role="region" with aria-labelledby back to the header id. Animate the panel with grid-template-rows from 0fr to 1fr so long answers never clip and short ones do not ease for the same duration. Enter and Space toggle, Tab moves between headers normally since each is its own tab stop, and a visible focus-visible ring is required. Allow the open item to be collapsed so no panel is forced open.

MeDo में आज़माएं
ComparisonMulti-Open

Several Panels Open at Once

For troubleshooting steps and spec tables, where someone genuinely needs two sections side by side. Add Expand all only here — it is meaningless in exclusive mode.

Create a multi-open accordion where any number of panels may be expanded at once, holding open ids in a set rather than a single value. Add an Expand all and Collapse all control above the stack whose label reflects the current state, and make it a real button with aria-expanded describing the group. Each header is a button with aria-expanded and aria-controls; each panel is role="region" with aria-labelledby. Animate with grid-template-rows 0fr to 1fr so several simultaneous transitions do not fight a shared max-height. Preserve panel scroll position and any half-filled form fields by keeping panels in the DOM and toggling the hidden attribute rather than unmounting them. Enter and Space toggle the focused header.

MeDo में आज़माएं
No JavaScriptNative Details

Details and Summary Accordion

Works before your bundle loads, is keyboard accessible with zero attributes, and joins find-in-page so a browser search opens the matching panel. The baseline to beat.

Create an accordion using native details and summary elements with no JavaScript at all. Give each details the same name attribute so the browser enforces exclusive-open behavior natively. Style the summary as a full-width row with 20px vertical padding, remove the default marker with list-style: none and ::-webkit-details-marker, and add a custom chevron that rotates using the details[open] selector. Animate the panel with interpolate-size: allow-keywords plus a height transition from 0 to auto, and add ::details-content to the transition so the reveal is smooth where supported and an instant open elsewhere. Keep a visible focus ring on the summary and ensure find-in-page still expands a closed panel.

MeDo में आज़माएं
ShareableDeep Linked

Hash-Opened Panels With Copy Link

Every panel gets its own URL, so a support reply can point at one answer rather than "scroll down to the FAQ". The offset for the sticky header is the part that gets skipped.

Create an accordion where each item is addressable by URL hash. Give every header a stable slug id derived from its question, and on mount read location.hash, open the matching panel, and scroll it into view with scroll-margin-top of 96px so it does not land underneath a sticky header. Update the hash on open using history.replaceState so the back button is not filled with toggles, and listen for hashchange so in-page links work after the first render. Add a small copy-link button inside each header row that writes the absolute URL to the clipboard and swaps its label to Copied for two seconds; stop its click from bubbling to the header button so copying does not also collapse the panel.

MeDo में आज़माएं
SEOFAQ Schema

Accordion With FAQPage JSON-LD

Panels and structured data generated from one array, which is the only way they stay in sync six months later. Treat the markup as a clarity signal, not a guaranteed rich result.

Create an FAQ accordion that renders both the interactive panels and a matching FAQPage JSON-LD script from the same array of question and answer objects, so the two cannot drift apart when someone edits a question. Emit the JSON-LD server-side in a script tag with type="application/ld+json", using Question and Answer entities with acceptedAnswer text. Render every answer into the HTML even while collapsed, hiding it with CSS rather than fetching it on click, since content injected after a click may never be crawled. Keep the accessible pattern intact: header buttons with aria-expanded and aria-controls, panels as role="region" with aria-labelledby, and a grid-template-rows height animation.

MeDo में आज़माएं
NestedNested Groups

Grouped Accordion With Sub-Sections

Two levels for a long feature matrix or a knowledge base. Depth past two is where people lose the thread — if you need a third, the content wants its own page.

Create a nested accordion two levels deep: outer groups such as Security, Integrations and Support, each containing three to five child items. Indent child headers by 20px, drop their type size by one step, and keep every level as its own button with aria-expanded and aria-controls, panels as role="region" with aria-labelledby — do not use a treeview role, since these are disclosures, not a tree. Outer groups are multi-open and children are single-open within their parent. When a parent collapses, remember which children were open so reopening the parent restores that state rather than resetting it, and make sure the parent panel height animation accounts for children expanding after the parent has settled.

MeDo में आज़माएं

अपने एकॉर्डियन को कैसे कस्टमाइज़ करें

<details> और बटन में से चुनाव पहले ही कर लें

नेटिव <details> और <summary> की जोड़ी बिना JavaScript काम करती है, डिफ़ॉल्ट रूप से कीबोर्ड एक्सेसिबल है, और जब ब्राउज़र पेज में खोजता है तो खुली रहती है। aria-expanded वाला बटन आपको एनिमेशन और एक्सक्लूसिव-ओपन लॉजिक पर पूरा नियंत्रण देता है। जो चाहिए वह बताएं, क्योंकि दोनों बिल्कुल अलग मार्कअप बनाते हैं।

हार्ड-कोडेड max-height तक कभी एनिमेट न करें

फिक्स्ड max-height लंबे जवाबों को काट देता है और छोटे जवाबों को भी उतनी ही देर तक ईज़ कराता है। grid-template-rows को 0fr से 1fr तक एनिमेट करने के लिए कहें, या height auto के लिए interpolate-size के साथ calc-size मांगें, ताकि ट्रांज़िशन असली कंटेंट हाइट का अनुसरण करे।

सिंगल-ओपन और मल्टी-ओपन के बारे में स्पष्ट रहें

एक्सक्लूसिव ओपन पेज को छोटा और पाठक को एक जवाब पर केंद्रित रखता है। एक साथ कई पैनल खुले रहने देना तब बेहतर है जब लोग सेक्शन की तुलना करते हैं या दो में से डिटेल कॉपी करते हैं। डिफ़ॉल्ट बताएं और यह भी कि यूज़र सभी आइटम बंद कर सकता है या नहीं, क्योंकि कुछ एकॉर्डियन हमेशा एक पैनल खुला रखते हैं।

डीप लिंक और स्क्रॉल ऑफ़सेट एक साथ मांगें

URL hash से पैनल खोलना फीचर का आधा हिस्सा ही है। स्पष्ट स्क्रॉल ऑफ़सेट के बिना टारगेट स्टिकी हेडर के नीचे चला जाता है, इसलिए हेडर की ऊंचाई बताएं और उसी प्रॉम्प्ट में scroll-margin-top या स्क्रिप्टेड ऑफ़सेट मांगें।

एकॉर्डियन कंपोनेंट का उपयोग कौन करता है

मार्केटिंग साइट का FAQ सेक्शन

लैंडिंग पेज के नीचे एक्सक्लूसिव-ओपन एकॉर्डियन में आठ सवाल, हर आइटम डीप-लिंक करने योग्य ताकि सपोर्ट के जवाब किसी एक उत्तर पर इशारा कर सकें, और उसी डेटा ऐरे से FAQPage JSON-LD भी निकले।

ई-कॉमर्स प्रोडक्ट पेज

शिपिंग, रिटर्न और केयर इंस्ट्रक्शन को add-to-cart बटन के नीचे कोलैप्स रखें, जिससे बाय बॉक्स ऊपर दिखता रहे और पॉलिसी टेक्स्ट सर्च इंजन के लिए HTML में बना रहे।

डॉक्यूमेंटेशन या नॉलेज बेस

ट्रबलशूटिंग स्टेप्स को मल्टी-ओपन एकॉर्डियन में रखें ताकि पाठक किसी फिक्स पर काम करते हुए दो संबंधित सेक्शन साथ-साथ खुले रख सके।

प्राइसिंग पेज की तुलना

लंबे फीचर मैट्रिक्स को सिक्योरिटी, इंटीग्रेशन और सपोर्ट जैसे कोलैप्सिबल ग्रुप में बांटें, ताकि प्लान कॉलम दिखते रहें और तीन स्क्रीन भर पंक्तियां स्क्रॉल न करनी पड़ें।

अलग-अलग वेबसाइटों के लिए एकॉर्डियन पैटर्न

वही एकॉर्डियन कंपोनेंट, उस वेबसाइट के प्रकार के हिसाब से ढाला गया जहाँ वह लगेगा।

01 / 06

Marketing Site FAQ

Exclusive-open questions at the bottom of a landing page, with the two or three answers that actually resolve a purchase objection promoted out into plain page copy above. An accordion holding your strongest answer is an accordion hiding it.

एकॉर्डियन की शैलियाँ और वेरिएंट

जो वेरिएंट बाकी पेज से मेल खाता है उसे चुनें और जेनरेट करें।

01 / 06

Divider List Accordion

Flush rows separated by 1px light-grey lines, with no outer border at all. The quietest option and the right one for an FAQ of ten or more items, where card borders and gaps would add more visual noise than structure.

React, Next.js, Vue और Svelte में एकॉर्डियन

React, Next.js, Vue 3, SvelteKit, Astro या सादा HTML — वही एकॉर्डियन, जोड़ने के छह तरीके।

01 / 06

React Accordion

Hold open ids in a Set so the same component covers single and multi-open — swap the set for one id and you have exclusive mode. No height measurement is needed if the panel animates with grid rows.

src/components/Accordion.tsx

const [open, setOpen] = useState(new Set())

<button
  aria-expanded={open.has(item.id)}
  aria-controls={`panel-${item.id}`}
  onClick={() => toggle(item.id)}
>
  {item.question}
</button>
<div id={`panel-${item.id}`} role="region" className="grid"
     style={{ gridTemplateRows: open.has(item.id) ? '1fr' : '0fr' }}>
  <div className="overflow-hidden">{item.answer}</div>
</div>

अपने एकॉर्डियन को प्रोजेक्ट में कैसे जोड़ें

एकॉर्डियन टेम्पलेट चुनने से प्रोडक्शन में भेजने तक, चार चरण।

01~30s

Pick an Accordion Template

Decide two things first: single or multi-open, and native details versus a button with aria-expanded. Those choices produce different markup, so picking after generation means regenerating.

02~10s

Copy the Prompt

Take the prompt into MeDo, Lovable, Bolt, v0 or Cursor and paste your real questions and answers in place of the placeholders. If you want FAQPage JSON-LD, say so now so it is generated from the same array rather than hand-written later.

03~1min

Generate and Refine

You get React + Tailwind back with a live preview. Follow up in plain English — "allow several open at once", "open the panel matching the URL hash", "swap the chevron for a plus" — instead of editing the transition by hand.

04~2min

Check the Content and Ship

Before shipping, confirm the longest answer does not clip mid-animation, every answer is present in the HTML while collapsed, and your highest-intent copy is in open page text rather than behind a click.

एकॉर्डियन के बारे में सामान्य प्रश्न

AI से FAQ एकॉर्डियन कैसे जेनरेट करें?

प्रॉम्प्ट में अपने सवाल और जवाब लिखें और बताएं कि एक बार में एक पैनल खुले या कई। MeDo aria-expanded और aria-controls वाले एक्सेसिबल हेडर बटन, एनिमेटेड पैनल, और चाहें तो उसी कंटेंट से बना मैचिंग FAQPage JSON-LD जेनरेट करता है, जिससे मार्कअप और स्ट्रक्चर्ड डेटा एक-दूसरे से अलग नहीं हो सकते।

<details> और <summary> इस्तेमाल करूं या कस्टम एकॉर्डियन?

जब आपको भरोसेमंद बेसलाइन चाहिए तो <details> और <summary> इस्तेमाल करें: यह JavaScript लोड होने से पहले काम करता है, बिना किसी एट्रिब्यूट के कीबोर्ड और स्क्रीन-रीडर एक्सेसिबल है, और ब्राउज़र के find-in-page फीचर में भी शामिल होता है। जब एक्सक्लूसिव ओपन व्यवहार, नियंत्रित एनिमेशन कर्व, या URL में रहने वाला स्टेट चाहिए तो aria-expanded वाला बटन चुनें। अब ब्राउज़र interpolate-size के साथ content-visibility और height के ट्रांज़िशन को सपोर्ट करते हैं, इसलिए नेटिव एलिमेंट को भी एनिमेट किया जा सकता है।

एकॉर्डियन को height auto तक कैसे एनिमेट करें?

पैनल को CSS grid में लपेटें और grid-template-rows को 0fr से 1fr तक ट्रांज़िशन करें, भीतरी एलिमेंट पर overflow hidden रखें। यह JavaScript में कोई माप किए बिना असली कंटेंट हाइट का अनुसरण करता है। जो ब्राउज़र interpolate-size: allow-keywords सपोर्ट करते हैं, वहां आप height को 0 से auto तक सीधे ट्रांज़िशन कर सकते हैं, जो आसान है और प्रोग्रेसिव एन्हांसमेंट के रूप में इस्तेमाल करने लायक है।

क्या एकॉर्डियन FAQ को Google में रिच रिज़ल्ट मिल सकते हैं?

मिल सकते हैं, अगर पेज पर वैलिड FAQPage स्ट्रक्चर्ड डेटा हो और सवाल-जवाब रेंडर हुए HTML में भी दिखें। Google ने FAQ रिच रिज़ल्ट की पात्रता मुख्यतः आधिकारिक सरकारी और स्वास्थ्य साइटों तक सीमित कर दी है, इसलिए इस मार्कअप को गारंटीड SERP फीचर की जगह सर्च और AI उत्तर इंजनों के लिए स्पष्टता का संकेत मानें। MeDo से कहें कि JSON-LD उसी ऐरे से बनाए जो पैनल रेंडर करता है, ताकि दोनों सिंक में रहें।

क्या एकॉर्डियन में कंटेंट छिपाने से SEO पर असर पड़ता है?

जो कंटेंट HTML में है लेकिन दृश्य रूप से कोलैप्स्ड है, वह सामान्य रूप से इंडेक्स होता है, और Google ने कहा है कि मोबाइल एकॉर्डियन एक अपेक्षित रेस्पॉन्सिव पैटर्न है। असली जोखिम हैं जवाबों को सिर्फ क्लिक पर लोड करना, जिससे वे अनक्रॉल्ड रह सकते हैं, और अपनी सबसे ज़रूरी कॉपी को वहां दबा देना जहां कोई उसे खोलता नहीं। मुख्य संदेश खुली पेज कॉपी में रखें और सहायक विवरण के लिए कोलैप्स्ड पैनल इस्तेमाल करें।

एकॉर्डियन इस्तेमाल करूं या टैब्स?

एकॉर्डियन चुनें जब सेक्शन स्वतंत्र हों, लेबल इतने लंबे हों कि वाक्य जैसे पढ़े जाएं, या पाठक एक साथ एक से ज़्यादा खोलना चाहे — इसीलिए FAQ लिस्ट लगभग हमेशा एकॉर्डियन होती हैं। टैब्स चुनें जब पैनल परस्पर अनन्य विकल्प हों जिनकी तुलना की जा रही है, जैसे मासिक बनाम वार्षिक प्राइसिंग, और लेबल इतने छोटे हों कि एक हॉरिज़ॉन्टल पंक्ति में आ जाएं। सवाल जैसे लंबे लेबल सबसे स्पष्ट संकेत हैं कि टैब्स गलत पैटर्न है।

अभी अपना एकॉर्डियन जेनरेट करें।

कोई भी प्रॉम्प्ट आज़माएं — मुफ्त, कोई साइन अप नहीं।