MeDo

AI टैब्स जेनरेटर।

अपने पैनल बताएं और MeDo पूरा टैब्स कम्पोनेंट जेनरेट करता है — सही ARIA रोल्स, ऐरो-की नेविगेशन, एनिमेटेड एक्टिव इंडिकेटर, मोबाइल पर ओवरफ्लो हैंडलिंग, और URL से सिंक होने वाला एक्टिव टैब जो रीलोड के बाद भी बना रहता है।

टैब्स
टैब्स

टैब्स स्टाइलिंग के भेस में छिपा एक रूटिंग निर्णय है

टैब सेट सिर्फ कंटेंट नहीं छुपाता, यह एक पेज को कई व्यू में बांट देता है जो एक ही URL साझा करते हैं। जिस पल कोई Pricing टैब शेयर करना चाहे, सपोर्ट आर्टिकल से उसे लिंक करना चाहे, या अपनी जगह खोए बिना रीलोड करना चाहे, कम्पोनेंट को असली स्टेट चाहिए जो React के बाहर रहे। टीमें आमतौर पर टैब्स लॉन्च होने के बाद यह समझती हैं, फिर ऐसी क्वेरी-स्ट्रिंग हैंडलिंग जोड़ती हैं जो एनिमेशन और इनिशियल रेंडर से टकराती है। शुरुआत में ही तय कर लेना कि एक्टिव टैब लोकल स्टेट की जगह URL से निकलेगा, पूरे कम्पोनेंट को सरल बना देता है: ट्रिगर लिंक जैसा एक्शन बन जाता है, डीप लिंक मुफ्त में काम करते हैं, और सर्वर रेंडरिंग पहले पेंट पर ही सही पैनल देती है। इससे मार्कअप लिखने का तरीका भी बदलता है, और इसीलिए इसे शुरू से वैसा जेनरेट करना बाद में बदलने से कहीं सस्ता पड़ता है।

6 टेम्पलेट

टैब्स टेम्पलेट जो आप जेनरेट कर सकते हैं

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

BasicUnderline

Underlined Tab Row With a Sliding Indicator

The default that reads as tabs without any explanation. Reach for it when the panels are static content and you want the indicator to do the signalling rather than a border box.

Create a tabs component with four triggers using the ARIA tabs pattern: role="tablist" on the container, role="tab" with aria-selected and aria-controls on each trigger, and role="tabpanel" with aria-labelledby on each panel. Use roving tabindex so only the selected tab has tabindex 0 and Tab moves out of the group entirely rather than through it. Left and Right arrows move focus and wrap at both ends, Home and End jump to the first and last tab, and activation is automatic because the panels are static text. Triggers are 40px tall with 15px medium labels, muted grey when inactive and near-black when active. Measure the active trigger and slide a 2px underline using translateX and scaleX over 200ms — never animate left or width.

MeDo में आज़माएं
SegmentedPill Segmented

Segmented Control With a Sliding Pill

Two or three mutually exclusive options that belong on one control, like monthly versus annual. Do not use it past four tabs — the track stops fitting on a phone and equal widths force truncation.

Create a segmented-control tabs component: one rounded 36px-tall track with a light grey background and 2px inner padding, holding three equal-width triggers. The active trigger is a white pill with a soft shadow that moves between positions with translateX over 180ms, so the label text never reflows mid-transition. Keep the full ARIA tabs roles and roving tabindex — Left and Right arrows move focus with wrapping, Home and End jump to the ends, and activation is automatic. Give every trigger the same explicit min-width so switching from a short label to a long one does not resize the track. Under prefers-reduced-motion, cross-fade the pill background instead of sliding it.

MeDo में आज़माएं
Deep linkableURL-Synced

Tabs Backed by a Query Parameter

The active tab lives in the URL, so support can link to one panel and a reload keeps your place. Worth doing before launch, because retrofitting it means rewriting the initial render.

Create a tabs component whose active tab is derived from a ?tab= query parameter rather than local state, so the first server render already paints the correct panel with no post-hydration flash. Read the parameter, validate it against the known tab ids, and fall back to the first tab when the value is unrecognised. On selection, write the new value with a replace-style navigation so the back button is not filled with tab switches, and preserve every other query parameter already on the URL. Keep the ARIA tabs wiring intact: roving tabindex, Left and Right arrows with wrapping, Home and End, and manual activation on Enter or Space.

MeDo में आज़माएं
OverflowScrollable

Horizontally Scrolling Tablist

What happens when seven labels meet a 390px viewport. The part teams forget is scrolling the newly focused tab into view — arrow keys otherwise move focus to a tab nobody can see.

Create a tabs component that handles overflow by scrolling rather than wrapping or clipping. Under 640px the tablist scrolls horizontally with momentum, the scrollbar is hidden, and a gradient fade appears on either edge only while content remains in that direction. When Left or Right arrow moves the roving tabindex, call scrollIntoView with inline nearest on the newly focused trigger so keyboard focus is never off screen, and do the same for Home and End. Use scroll-snap-align on each trigger so a flick settles on a label boundary instead of mid-word. Keep the full ARIA roles and aria-controls wiring, and recompute the indicator position on scroll and on resize.

MeDo में आज़माएं
PerformanceLazy Panels

Tabs With Deferred Panel Mounting

Only the active panel mounts, so opening Settings does not fetch invoices nobody asked for. The catch is state loss, so name the panels that must survive a switch.

Create a tabs component that mounts only the active panel and keeps every inactive panel out of the DOM entirely, so charts, video players and data fetches for unseen tabs never run. Use manual activation — arrow keys move the roving tabindex and only Enter or Space commits the change — because automatic activation would fire a request for every tab a keyboard user passes through. Accept a keepMounted list of tab ids whose panels stay in the DOM hidden with the hidden attribute instead, for panels holding half-filled forms or scroll position. Show a skeleton inside a newly mounted panel while its data resolves, and keep the panel container height stable so the page below does not jump.

MeDo में आज़माएं
SidebarVertical

Vertical Tabs for Settings Screens

A left rail of labels beside one panel. The one thing that changes beyond layout is the arrow axis — Up and Down, not Left and Right, and aria-orientation has to say so.

Create a vertical tabs component for a settings screen: a 200px left rail of triggers with a single panel to its right. Set aria-orientation="vertical" on the tablist and bind Arrow Up and Arrow Down to move the roving tabindex with wrapping, since Left and Right are wrong on this axis; keep Home and End for the ends. Triggers are left-aligned rows, 36px tall, with a 2px indicator on the left edge that translates vertically over 200ms. Below 768px collapse the rail into a horizontal scrolling tablist above the panel and switch the arrow bindings and aria-orientation to match. Use manual activation, and give the panel tabindex="-1" so a programmatic focus move after selection is possible.

MeDo में आज़माएं

अपने टैब्स को कैसे कस्टमाइज़ करें

ऑटोमैटिक या मैनुअल एक्टिवेशन सोच-समझकर चुनें

ऑटोमैटिक एक्टिवेशन में ऐरो-की से फोकस बदलते ही पैनल बदल जाता है — तेज़ है, पर बेकार जब पैनल रेंडर करना भारी हो या डेटा फेच करता हो। मैनुअल एक्टिवेशन पहले फोकस बदलता है और Enter या Space पर ही एक्टिवेट करता है। बताएं आपको कौन सा चाहिए, क्योंकि कीबोर्ड कोड अलग होता है।

इंडिकेटर को width से नहीं, transform से एनिमेट करें

ऐसा अंडरलाइन मांगें जो एक्टिव ट्रिगर को मापे और translateX व scaleX से स्लाइड करे। left और width एनिमेट करना हर फ्रेम में लेआउट थ्रैश करता है, सबपिक्सेल बाउंड्री पर हिलता है, और tablist स्क्रॉल होने लगे तो पूरी तरह टूट जाता है।

तय करें कि टैब ओवरफ्लो होने पर क्या हो

चार छोटे लेबल फोन पर आ जाते हैं; सात नहीं। एक व्यवहार चुनें और स्पष्ट लिखें: किनारे पर फेड वाला हॉरिजॉन्टली स्क्रॉलिंग tablist, दूसरी पंक्ति में रैप, या किसी ब्रेकपॉइंट से नीचे नेटिव select में समेटना। न बताने पर जेनरेट किए टैब्स आमतौर पर बस कट जाते हैं।

बताएं कि इनएक्टिव पैनल माउंटेड रहें या नहीं

इनएक्टिव पैनल अनमाउंट करने से DOM छोटा रहता है और वे चार्ट या वीडियो प्लेयर नहीं चलते जिन्हें कोई देख नहीं रहा, लेकिन स्क्रॉल पोजिशन और आधे भरे फॉर्म फील्ड भी चले जाते हैं। बताएं कौन से पैनल स्टेट रखते हैं, ताकि उन्हें इसके बजाय CSS से छुपाया जाए।

टैब्स कंपोनेंट का उपयोग कौन करता है

प्राइसिंग पेज

एक ही प्राइस ग्रिड के ऊपर मंथली और एनुअल बिलिंग दो टैब्स के रूप में, और चुनाव URL में लिखा जाए ताकि सेल्स सीधे एनुअल प्राइसिंग पर लिंक कर सके और एनुअल डिस्काउंट पहली लोड पर ही दिखे।

प्रोडक्ट डॉक्यूमेंटेशन

भाषा के हिसाब से बंटे कोड सैंपल — curl, Node, Python, Go — जहां एक बार भाषा चुनना पेज के हर टैब ग्रुप पर लागू हो और अगली विज़िट पर भी याद रहे।

डैशबोर्ड या एडमिन टूल

Profile, Team, Billing और API Keys टैब्स वाली सेटिंग्स स्क्रीन जहां हर पैनल लेज़ी माउंट हो, ताकि सेटिंग्स खोलने भर से वे इनवॉइस फेच न हों जो किसी ने मांगे ही नहीं।

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

गैलरी के नीचे Description, Specifications और Reviews टैब्स के रूप में, ट्रिगर लेबल में रिव्यू की संख्या और डिस्क्रिप्शन पेज बॉडी में भी रेंडर हो, ताकि मुख्य कॉपी केवल टैब के पीछे न रहे।

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

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

01 / 06

SaaS Pricing Page Tabs

Monthly and annual billing as a two-tab segmented control above one price grid. Sync the choice to the URL so a sales email can open annual pricing directly — a pricing page where the discount is one unshareable click away is losing the conversation before it starts.

टैब्स की शैलियाँ और वेरिएंट

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

01 / 06

Underlined Tabs

A muted label row with a 2px indicator sliding beneath the active trigger. The most legible default because the underline gives the eye a single moving object to track. Animate it with translateX and scaleX — animating left and width thrashes layout every frame and jitters on subpixel boundaries.

React, Next.js, Vue और Svelte में टैब्स

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

01 / 06

React Tabs

Keep the selected id in one piece of state and derive tabindex from it — that is the whole roving tabindex mechanism. Hold refs to the triggers so the arrow handler can focus the next one directly.

src/components/Tabs.tsx

const [active, setActive] = useState(tabs[0].id)

<div role="tablist" onKeyDown={onArrowKeys}>
  {tabs.map((t) => (
    <button
      key={t.id}
      role="tab"
      aria-selected={t.id === active}
      aria-controls={`panel-${t.id}`}
      tabIndex={t.id === active ? 0 : -1}
      onClick={() => setActive(t.id)}
    >
      {t.label}
    </button>
  ))}
</div>

अपने टैब्स को प्रोजेक्ट में कैसे जोड़ें

टैब्स टेम्पलेट चुनने से प्रोडक्शन में भेजने तक, चार चरण।

01~30s

Pick a Tabs Template

Choose by constraint, not by looks: segmented for two or three alternatives, scrollable once labels overflow a phone, vertical for a long settings rail, lazy when a panel fetches data.

02~10s

Copy the Prompt

Take the prompt into MeDo, Lovable, Bolt, v0 or Cursor, then edit two things — your real tab labels, and whether activation is automatic or manual. That second choice changes the keyboard code, so decide it before you generate.

03~1min

Generate and Refine

You get React + Tailwind back with a live preview. Follow up in plain English — "sync the active tab to ?tab=", "collapse to a select under 640px", "keep the chart panel mounted" — rather than editing the keydown handler by hand.

04~2min

Wire the Panels and Ship

Replace the placeholder panels with your real content and check three things with the keyboard only: Tab enters and leaves the group in one stop, arrows move within it, and a reload on a deep link opens the right panel.

टैब्स के बारे में सामान्य प्रश्न

AI से एक्सेसिबल टैब्स कम्पोनेंट कैसे जेनरेट करें?

एक ही प्रॉम्प्ट में टैब लेबल और चाहा गया व्यवहार बताएं, यह भी कि एक्टिवेशन ऑटोमैटिक है या मैनुअल। MeDo tablist, tab और tabpanel रोल्स को मेल खाते aria-controls और aria-labelledby वायरिंग के साथ जेनरेट करता है, साथ ही roving tabindex जोड़ता है ताकि ऐरो-की टैब्स के बीच चले और Tab पूरे ग्रुप से बाहर निकले।

ऑटोमैटिक और मैनुअल टैब एक्टिवेशन में क्या अंतर है?

ऑटोमैटिक एक्टिवेशन में ऐरो-की से फोकस हटाते ही वह पैनल दिख जाता है, जो सस्ते स्टैटिक कंटेंट के लिए ठीक है। मैनुअल एक्टिवेशन में ऐरो-की सिर्फ फोकस बदलती है और यूज़र Enter या Space से पुष्टि करता है। जब भी पैनल डेटा फेच करता हो, चार्ट रेंडर करता हो या धीमा हो, मैनुअल उपयोग करें, क्योंकि ऑटोमैटिक में कीबोर्ड यूज़र जिस भी टैब से गुजरेगा हर एक के लिए रिक्वेस्ट चलेगी।

क्या मैं किसी खास टैब पर सीधा लिंक कर सकता हूं?

हां, अगर एक्टिव टैब कम्पोनेंट स्टेट की जगह URL में रखा गया हो। ?tab=pricing जैसा क्वेरी पैरामीटर मांगें जो इनिशियल रेंडर तय करे और बदलाव पर replace-स्टाइल नेविगेशन से अपडेट हो, ताकि बैक बटन टैब स्विच से न भरे। इसके लिए hash फ्रैगमेंट से बचें, क्योंकि ब्राउज़र उसी id वाले एलिमेंट तक स्क्रॉल करने की भी कोशिश करेगा।

क्या इनएक्टिव टैब्स में छुपा कंटेंट SEO को नुकसान पहुंचाता है?

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

मोबाइल पर टैब्स कैसे बर्ताव करें?

लेबल छोटे होने देने के बजाय एक ही रणनीति चुनें। ओवरफ्लो होते किनारे पर फेड वाला हॉरिजॉन्टली स्क्रॉल होने वाला tablist लगभग छह छोटे लेबल तक अच्छा चलता है; उससे ज़्यादा पर नेटिव select में समेटना बेहतर टच टारगेट देता है और छुपे टैब्स से बचाता है। MeDo को ब्रेकपॉइंट और रणनीति बताएं, यह एक ही कम्पोनेंट से दोनों लेआउट जेनरेट कर देगा।

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

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

अभी अपना टैब्स जेनरेट करें।

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