MeDo

AI टूलटिप जेनरेटर।

आपको जो हिंट चाहिए वह बताएं और MeDo पूरा व्यवहार जेनरेट करता है — ओपन और क्लोज़ डिले, viewport किनारों से बचने के लिए फ्लिपिंग, ट्रिगर पर टिका रहने वाला एरो, कीबोर्ड फोकस पर ट्रिगरिंग और aria-describedby वायरिंग।

टूलटिप
टूलटिप

टूलटिप वह एक कम्पोनेंट है जिसे आपके एक-तिहाई यूज़र कभी नहीं देखेंगे

टचस्क्रीन पर होवर मौजूद नहीं होता। फोन पर कोई भी जेस्चर भरोसेमंद तरीके से यह नहीं कहता कि "इस कंट्रोल को एक्टिवेट किए बिना मुझे विवरण दिखाओ", जिसका मतलब है कि हर टूलटिप आपके ट्रैफिक के एक बड़े हिस्से के लिए अदृश्य है। यह एक तथ्य ही टूलटिप डिज़ाइन की ज्यादातर बहसें शुरू होने से पहले खत्म कर देता है: टूलटिप में केवल वही जानकारी हो सकती है जिसकी यूज़र को जरूरत नहीं है। फील्ड की आवश्यकताएं, एरर मैसेज, प्राइसिंग की शर्तें और आइकन-ओनली बटन का अर्थ — इन सबको कहीं दिखने वाली जगह पर या accessible name में होना चाहिए। टूलटिप को ऐसे इंटरफेस के ऊपर की सजावट मानें जो उसके बिना भी काम करता है, और एक्सेसिबिलिटी के सवाल लगभग खुद ही सुलझ जाते हैं।

6 टेम्पलेट

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

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

BasicLabel Hint

Dark Panel Hint on Hover and Focus

The default tooltip: one line of plain text, dark panel, arrow, delays in both directions. Reach for it when a control is already named and you only want to add a detail a mouse user might appreciate.

Create a tooltip component that wraps a single trigger child and renders a short plain-text hint on pointer enter and on focus-visible. Use a dark slate panel with 13px white text, 6px vertical and 10px horizontal padding, a 6px radius, a 240px max width and an 8px offset from the trigger, plus a 6px arrow aimed at the trigger. Open after a 300ms delay and close after 100ms so the pointer can cross the gap without the panel vanishing. Dismiss on Escape, on blur and on scroll. Give the panel role="tooltip" and link it to the trigger with aria-describedby only while it is open, rather than leaving hidden markup in the tree. Fade and translate 4px on entry, and drop the transition entirely under prefers-reduced-motion.

MeDo में आज़माएं
Icon-onlyIcon Button

Tooltip as the Only Label a Control Has

When the icon is the whole button, the tooltip text is the accessible name — not a description. Getting that distinction wrong is why so many toolbars announce the same word twice.

Create a tooltip for an icon-only button where the tooltip text is the only name the control has. Put that string in aria-label on the button and do not also set aria-describedby, so the same words are not announced twice. The visible panel exists for sighted pointer users: dark surface, 12px text, a single line that does not wrap under 200px. Open on hover after a 400ms delay but open immediately on focus-visible, since a keyboard user has already committed to the control. Close on Escape, on blur and on pointer leave. Keep the button hit area at least 44px even when the glyph is 20px, and skip rendering the panel entirely when a coarse pointer is detected.

MeDo में आज़माएं
CollisionAuto Flip

Edge-Aware Placement With a Tracking Arrow

Handles the case a fixed side always breaks: a trigger near the top of a scroll container or the right edge of the viewport. The arrow has to re-anchor after the flip or it points at nothing.

Create a tooltip with collision-aware placement: a preferred side prop of top, bottom, left or right, an explicit fallback order, and shifting along the cross axis when the panel would overflow the viewport or the nearest scrolling ancestor. Add a 6px arrow that re-anchors to the trigger centre after any flip or shift, clamped so it never slides past the panel corner radius. Recompute position on scroll and resize behind a requestAnimationFrame throttle, and close rather than reposition once the trigger leaves the visible area. Keep the aria-describedby relationship stable across repositioning so the description is not re-announced. Use role="tooltip" and plain text content with no interactive children.

MeDo में आज़माएं
ToolbarGroup Skip

Shared Delay Across a Button Row

One provider, one timer. Once the first tooltip in a toolbar has opened, moving along the row should switch content instantly instead of making the user wait 300ms per button.

Create a tooltip provider that shares open state across a group of triggers in a toolbar. The first tooltip in the group waits the full 300ms open delay; while any tooltip in the group is open, moving to a sibling trigger swaps the content with no delay and no exit animation, so the panel appears to slide along the row. Leaving the group entirely closes after a 150ms grace period. Reuse a single positioned panel element rather than mounting one per trigger, and update its aria-describedby target as the active trigger changes. Escape closes the group and returns focus behaviour to normal. Under prefers-reduced-motion, replace the slide with an instant content swap.

MeDo में आज़माएं
Multi-lineRich Hint

Two-Line Tooltip With a Keyboard Shortcut

A label line plus a monospace shortcut hint on the right. Still passive, still text-only — the moment you want a link in here, you want a popover instead.

Create a tooltip that renders a label line plus a secondary line, with an optional keyboard shortcut rendered as a small monospace chip aligned to the right of the label. Cap the panel at 260px, allow the description to wrap to two lines, and keep line-height at 1.4 so the two lines read as one block. Content stays non-interactive: no links, no buttons, no selectable code — if the user needs to click inside, use a popover. Announce the whole panel as one description via aria-describedby so the shortcut is read as part of the sentence rather than as a separate node. Open after 300ms, close after 100ms, dismiss on Escape and blur.

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

Tooltip Only When the Text Is Clipped

Table cells and file names truncate with an ellipsis; a tooltip that repeats already-visible text is noise. Measure the element and only attach the tooltip when scrollWidth exceeds clientWidth.

Create a conditional tooltip for truncated text: compare scrollWidth against clientWidth on the target element and only register hover and focus handlers when the text is actually clipped, so a fully visible cell never shows a tooltip repeating itself. Re-measure on resize and whenever the text content changes, using a ResizeObserver rather than a window listener. When active, show the full string in a dark panel capped at 320px with wrapping enabled, positioned below the cell to avoid covering the row header. Make the truncated element focusable with tabindex="0" only while the tooltip is registered, so keyboard users can reach it without collecting empty tab stops across the whole table.

MeDo में आज़माएं

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

ओपन और क्लोज़ डिले अलग-अलग सेट करें

एक साझा डिले दोनों दिशाओं में गलत है। खुलने से पहले लगभग 300ms टूलटिप को तब चमकने से रोकता है जब पॉइंटर टूलबार पार करता है, जबकि 100ms का छोटा क्लोज़ डिले पॉइंटर को ट्रिगर से टूलटिप तक जाने देता है, बीच रास्ते में पैनल गायब हुए बिना।

तय साइड नहीं, कोलिज़न डिटेक्शन मांगें

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

केवल होवर नहीं, फोकस से भी ट्रिगर होना जरूरी करें

यदि टूलटिप सिर्फ माउस पर प्रतिक्रिया देता है, तो कीबोर्ड यूज़र को कुछ नहीं मिलता। कहें कि यह focus-visible पर खुले और Escape तथा blur पर बंद हो — यही इसे स्विच डिवाइस या स्क्रीन रीडर से नेविगेट करने वालों के लिए भी उपयोगी बनाता है।

कंटेंट को पैसिव और केवल टेक्स्ट रखें

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

टूलटिप कंपोनेंट का उपयोग कौन करता है

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

आइकन-ओनली टूलबार बटन जिनका असली accessible name हो, साथ में देखने वाले माउस यूज़र्स के लिए लेबल दोहराने वाला टूलटिप; जब पॉइंटर आसपास के बटनों के बीच जाए तो ओपन डिले छोड़ दिया जाता है।

SaaS प्रोडक्ट

चार्ट लेजेंड पर एक हिंट जो बताता है कि कोई मेट्रिक कैसे कैलकुलेट होती है; पैनल के ऊपरी हिस्से के पास ट्रिगर के नीचे फ्लिप होती है और स्क्रॉल पर बंद हो जाती है, जिससे यह कभी उस बिंदु से अलग होकर तैरती नहीं।

ई-कॉमर्स स्टोर

साइज़-चार्ट के संक्षिप्त रूप और शिपिंग-बैज आइकन होवर पर समझाए जाते हैं, वही जानकारी प्रोडक्ट पेज के दिखने वाले टेक्स्ट में भी दोहराई जाती है क्योंकि फोन पर खरीदने वाले होवर कभी ट्रिगर नहीं करेंगे।

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

इनलाइन कोड टोकन और संक्षिप्त रूप जो होवर या फोकस पर एक लाइन का टाइप सिग्नेचर दिखाते हैं, संकरी अधिकतम चौड़ाई तक सीमित ताकि पैनल उस कोड सैंपल को कभी न ढके जिसे वह समझा रहा है।

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

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

01 / 06

Dashboard and Admin Tools

Dense toolbars are where tooltips earn their keep and where a per-trigger delay is most annoying. Use one shared provider so moving along a row of icon buttons swaps the label instantly. The tooltip still cannot be the only place the label exists — every icon button needs a real accessible name regardless.

टूलटिप की शैलियाँ और वेरिएंट

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

01 / 06

Dark Panel Tooltip

A dark slate surface with white text is the default for a reason: it reads as an overlay rather than as page content, so users do not mistake it for a permanent part of the layout. Keep the panel opaque — a translucent tooltip over a chart becomes unreadable exactly where it is needed.

React, Next.js, Vue और Svelte में टूलटिप

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

01 / 06

React Tooltip

Positioning needs real DOM measurement, so this is a client component with refs on both trigger and panel. Portal the panel to document.body — a tooltip inside a container with overflow: hidden will be clipped no matter how correct the coordinates are.

src/components/Tooltip.tsx

export function Tooltip({ label, children }) {
  const [open, setOpen] = useState(false)
  const id = useId()

  return (
    <span
      onPointerEnter={() => setOpen(true)}
      onPointerLeave={() => setOpen(false)}
    >
      {cloneElement(children, { 'aria-describedby': open ? id : undefined })}
      {open && createPortal(<Panel id={id}>{label}</Panel>, document.body)}
    </span>
  )
}

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

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

01~30s

Pick a Tooltip Pattern

Choose by what the trigger already tells the user: a label hint for a named control, the icon-only variant when the tooltip text is the accessible name, or the truncation variant for table cells.

02~10s

Copy the Prompt

Take it into MeDo, Lovable, Bolt, v0 or Cursor, and set the open and close delays before you run it. Those two numbers are what separates a helpful hint from a panel that flickers across a toolbar.

03~1min

Generate and Refine

You get React + Tailwind back with a live preview. Follow up in plain English — "flip below near the top edge", "open instantly on focus", "skip the delay between toolbar buttons" — rather than editing coordinate math by hand.

04~2min

Wire the Triggers and Test the Keyboard

Portal the panel out of any overflow-hidden ancestor, then tab to each trigger and press Escape. If the hint only appears on hover, or Escape does not close it, the component is not shippable yet.

टूलटिप के बारे में सामान्य प्रश्न

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

ट्रिगर, प्लेसमेंट और टाइमिंग एक ही प्रॉम्प्ट में बताएं — उदाहरण के लिए "ट्रिगर के ऊपर डार्क टूलटिप, 300ms ओपन डिले, viewport किनारे पर फ्लिप, फोकस पर भी खुले"। MeDo पोज़िशनिंग लॉजिक, एरो, डिले और aria-describedby वायरिंग एक साथ जेनरेट करता है, जिससे व्यवहार पूरा होता है — सिर्फ स्टाइल किया हुआ absolute-positioned div नहीं।

टूलटिप और popover में क्या अंतर है?

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

टूलटिप में aria-describedby या aria-label — क्या उपयोग करें?

aria-describedby उपयोग करें जब ट्रिगर के पास पहले से कोई दिखने वाला या accessible name हो और टूलटिप अतिरिक्त विवरण जोड़ता हो, क्योंकि description नाम के बाद अनाउंस होता है। aria-label उपयोग करें जब टूलटिप का टेक्स्ट कंट्रोल का एकमात्र नाम हो, जैसे आइकन-ओनली बटन में, और उस स्थिति में aria-describedby छोड़ दें ताकि वही स्ट्रिंग दो बार अनाउंस न हो।

क्या टूलटिप टच डिवाइस पर काम कर सकते हैं?

भरोसेमंद तरीके से नहीं। टचस्क्रीन पर होवर स्टेट नहीं होता, और long-press पहले से टेक्स्ट सिलेक्शन तथा कॉन्टेक्स्ट मेन्यू के लिए तय है, इसलिए टैप-पर-टूलटिप वाला कोई भी पैटर्न प्लेटफॉर्म से लड़ता है। मान लें कि फोन और टैबलेट यूज़र इसे कभी नहीं देखेंगे, और जरूरी बातें दिखने वाले टेक्स्ट या accessible name में रखें।

टूलटिप खुलने से पहले डिले कितना होना चाहिए?

लगभग 200 से 500ms अच्छा काम करता है, 300ms सुरक्षित डिफ़ॉल्ट है। डिले इसलिए है कि पॉइंटर कहीं और जाते हुए कंट्रोल की कतार पार करे तो टूलटिप फ्लिकर न करें। इसे लगभग 100ms के बहुत छोटे क्लोज़ डिले के साथ जोड़ें ताकि पॉइंटर टूलटिप की ओर बढ़ते समय पैनल गायब न हो।

क्या टूलटिप को कीबोर्ड से बंद किया जा सकना चाहिए?

हां। WCAG की आवश्यकता है कि होवर या फोकस पर दिखने वाला कंटेंट पॉइंटर या फोकस हिलाए बिना बंद किया जा सके, जिसका व्यवहार में मतलब है कि Escape उसे बंद करे। उसे पढ़ने के लिए पर्याप्त समय तक दिखना भी चाहिए और hoverable रहना चाहिए ताकि पॉइंटर उसके ऊपर जा सके। प्रॉम्प्ट में कीबोर्ड सपोर्ट का जिक्र करें और MeDo Escape, blur तथा hover-bridge व्यवहार जोड़ देता है।

अभी अपना टूलटिप जेनरेट करें।

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