MeDo

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

अपने स्टेट बताएं और MeDo पूरा बैज सेट जेनरेट करता है — सिमेंटिक स्टेटस पिल, हटाने योग्य टैग चिप, 99+ ओवरफ्लो वाले न्यूमेरिक काउंट, और डॉट इंडिकेटर जो अवतार पर बैठते हैं बिना क्लिप हुए।

बैज
बैज

बैज सबसे छोटा कम्पोनेंट है, लेकिन लेआउट तोड़ने की संभावना इसमें सबसे ज़्यादा है

बैज हमेशा किसी और चीज़ के अंदर रहते हैं: टेबल सेल, लिस्ट रो, नेव आइटम, हेडिंग। इससे इसकी अंतर्निहित ऊँचाई स्टाइल का विकल्प नहीं, बल्कि लेआउट की निर्भरता बन जाती है। जिस बैज का line-height उसके पास के टेक्स्ट से एक पिक्सेल ज़्यादा हो, वह चुपचाप टेबल की हर रो को खींच देगा, और बग "टेबल गलत दिख रही है" के रूप में रिपोर्ट होगा, बैज की समस्या के रूप में नहीं। पैडिंग और फॉन्ट मेट्रिक्स पर छोड़ने के बजाय बैज को फिक्स्ड ऊँचाई और line-height पर लॉक करना ही उसे हर जगह सुरक्षित रूप से डालने लायक बनाता है। पूरा सेट एक साथ जेनरेट करने का मतलब है कि हर टोन और साइज़ संरचनात्मक रूप से वही हाइट स्केल साझा करते हैं।

6 टेम्पलेट

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

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

BasicStatus Pill

Five-Tone Status Pill

The one you need first. Generating all five tones together is what keeps them on a single height scale, which is what makes the badge safe to drop into a table cell.

Create a status badge with five semantic tones — neutral grey, info blue, success green, warning amber, error red — each pairing a tinted background with a darker text color at 4.5:1 or better. Give it two sizes: sm at 18px tall with 11px text, md at 22px tall with 12px text, both at a 999px radius with 8px horizontal padding, a fixed line-height and inline-flex with align-items center, so a badge dropped into a table cell cannot change the row height. Always render a text label — the tone is redundant encoding, never the only signal. Render it as a span with no tabindex and no role, because a status badge is read-only output and adding a focus stop for it clutters keyboard navigation through a table.

MeDo में आज़माएं
NumericCount Badge

Notification Count With 99+ Clamping

A number, a min-width so single digits stay circular, and an announcement when it changes. Without the min-width the badge visibly changes shape as the count crosses from 9 to 10.

Create a numeric count badge that clamps displayed values above 99 to "99+" while keeping the true count in the accessible name. Set min-width equal to the badge height so a single digit renders as a circle rather than a narrow oval, use tabular-nums so the width does not jitter between values, and hide the badge entirely at zero rather than rendering an empty circle. Wrap the count in an element with role="status" and aria-live="polite" so an update is announced without interrupting, and phrase the accessible text as "3 unread messages" rather than a bare numeral. Do not use aria-live="assertive" — a count change almost never justifies cutting off whatever is being read.

MeDo में आज़माएं
AnchoredDot Indicator

Dot on an Icon or Avatar

An 8px circle overhanging the corner of a bell or an avatar. The failure is always the same: the wrapper has overflow: hidden for its rounding and clips the dot in half.

Create a dot indicator that anchors to the top-right of an icon or avatar: an 8px circle positioned absolutely with a small negative offset so it overhangs the edge, plus a 2px ring in the page surface color so it stays legible over a photo or a busy icon. Give the wrapper position: relative and explicitly no overflow: hidden — if the wrapper needs rounding, move the border-radius to an inner element so the dot is not clipped. Because a bare dot conveys nothing to a screen reader or a colorblind user, pair it with a visually hidden label naming the state or count. Mark the dot itself aria-hidden="true" so the label is announced once.

MeDo में आज़माएं
InteractiveRemovable Tag

Tag Chip With a Dismiss Button

The only variant that is a control rather than output. A dismiss glyph inside a div is why so many UIs ship tags a keyboard user cannot remove.

Create a removable tag chip: a label plus a dismiss control that is a real button element, not a span with a click handler, with aria-label naming the specific tag such as "Remove design" rather than a generic "Remove". Give the button a 16px glyph inside a 24px hit area, a visible focus ring, and Backspace or Delete as an alternative to Enter when it has focus. After removal, move focus to the next remaining chip, or to the group container when the last one is removed, so focus never lands on a detached node. Announce the removal through a polite live region. Keep the chip on the same height scale as the status badge so a row mixing both stays aligned.

MeDo में आज़माएं
With iconIcon + Label

Badge With a Leading Status Icon

A 12px glyph before the label for states that need to be identifiable in peripheral vision — a spinner for running, a check for passed, an octagon for failed in a CI list.

Create a badge variant with a 12px leading icon before the label, one distinct glyph per state so severity survives in grayscale: a check for passed, a spinning arc for running, an octagon for failed, a clock for queued. Mark the icon aria-hidden="true" since the label already carries the meaning. Keep the icon optically aligned to the text baseline rather than centered on the line box, and hold the overall badge height identical to the icon-less variant so a mixed column in a table does not develop two row heights. For the running state, drive the spin with a CSS animation and replace it with a static arc under prefers-reduced-motion rather than removing the icon.

MeDo में आज़माएं
SubtleOutline Badge

Bordered Badge for Dense Tables

A 1px border with a transparent fill, for screens where a column of tinted pills turns the table into a heat map. Also the variant that survives a dark theme without retinting.

Create an outlined badge variant: a 1px border in the tone color, a transparent background, and label text in the same tone at a darkened step so it holds 4.5:1 against both light and dark surfaces. Match the filled variant on height, radius, padding and line-height exactly, so the two can be swapped per column without any row reflowing — account for the 1px border inside the box by using box-sizing: border-box rather than reducing the padding. Provide a variant prop with filled and outline values on one component rather than a second component. Verify the border remains visible against a hovered table row background, which is the case that usually makes outline badges disappear.

MeDo में आज़माएं

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

टोन के नाम रंग से नहीं, अर्थ से रखें

ग्रीन, एम्बर और रेड के बजाय success, warning और error मांगें। सिमेंटिक नाम आपको डार्क मोड या रीब्रांड के लिए पैलेट फिर से ट्यून करने देते हैं, बिना हर इस्तेमाल का नाम बदले, और यह भी साफ हो जाता है कि कब बैज स्टेट बताने के बजाय सजावट के लिए इस्तेमाल हो रहा है।

रंग के साथ लेबल हमेशा रखें

अकेला लाल डॉट कलरब्लाइंड यूज़र को कुछ नहीं बताता, और स्क्रीन रीडर यूज़र को बिल्कुल कुछ नहीं। तय करें कि हर स्टेटस बैज टेक्स्ट रेंडर करे, और अगर वाकई सिर्फ डॉट चाहिए, तो साथ में विज़ुअली हिडन लेबल मांगें ताकि स्टेट फिर भी अनाउंस हो।

काउंट का ओवरफ्लो नियम बताएं

बताएं कि आपकी थ्रेशोल्ड से ऊपर क्या होगा — आमतौर पर "99+" पर क्लैम्प — और बैज को min-width दें ताकि एक अंक का काउंट संकरे अंडाकार के बजाय गोल रहे। min-width के बिना, काउंट 9 से 10 होते ही बैज का आकार साफ़ बदल जाता है।

स्टैटिक बैज और इंटरैक्टिव चिप में फर्क करें

स्टेटस बैज टेक्स्ट है और उसे फोकसेबल नहीं होना चाहिए। हटाने योग्य टैग एक कंट्रोल है, इसलिए डिसमिस के लिए असली button, फोकस रिंग और "डिज़ाइन हटाएं" जैसा एक्सेसिबल नाम चाहिए। MeDo को बताएं आपको कौन सा चाहिए, वरना ऐसा div मिलेगा जो क्लिक करने योग्य दिखता है पर कीबोर्ड से पहुँचा नहीं जा सकता।

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

SaaS डैशबोर्ड

टेबल में एक स्टेटस कॉलम जो Active, Pending और Failed को एक ही हाइट स्केल पर टिंटेड पिल के रूप में दिखाता है, जिससे किसी रो को Active से Failed करने पर रंग और लेबल बदलते हैं, रो हिलती नहीं।

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

हेडर में कार्ट आइकन के टॉप-राइट कोने पर एंकर किया काउंट बैज, "99+" पर क्लैम्प किया गया, साथ ही प्रोडक्ट कार्ड पर "नया" और "स्टॉक कम" पिल जो उसी टोन सिस्टम को दोहराते हैं।

प्रोजेक्ट मैनेजमेंट टूल

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

डॉक्यूमेंटेशन साइट

API हेडिंग के पास इनलाइन वर्जन और स्टेबिलिटी बैज — "Beta", "Deprecated", "v2.1" — फिक्स्ड line-height के साथ, ताकि वे जिस हेडिंग को एनोटेट करते हैं उसे न खींचें।

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

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

01 / 06

SaaS Dashboards

A status column of Active, Pending and Failed pills, where the only thing that matters is that switching a row from one tone to another does not shift the row. Consider the outline variant once the table has more than about ten rows — a full column of tinted fills reads as a heat map.

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

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

01 / 06

Filled Status Pill

A tinted background with darker text at a 999px radius — the default, and the most legible at 11px. Keep the tint light: a saturated fill at this size makes small text harder to read exactly where the label is doing the accessibility work.

React, Next.js, Vue और Svelte में बैज

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

01 / 06

React Badge

Stateless by definition — a status badge is output, so no hooks and no client boundary. Keep the tone map outside the component so the palette can be retuned in one place instead of at each call site.

src/components/Badge.tsx

const tones = {
  neutral: 'bg-zinc-100 text-zinc-700',
  success: 'bg-emerald-100 text-emerald-800',
  error: 'bg-red-100 text-red-800',
}

export function Badge({ tone = 'neutral', size = 'md', children }) {
  return (
    <span className={`inline-flex items-center rounded-full px-2
      ${sizes[size]} ${tones[tone]}`}>
      {children}
    </span>
  )
}

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

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

01~30s

Pick a Badge Variant

Decide first whether you need output or a control: a status pill and a count are read-only, a tag chip is interactive. Then pick the tone set and the two sizes you actually need.

02~10s

Copy the Prompt

Take it into MeDo, Lovable, Bolt, v0 or Cursor. Name your tones semantically — success, warning, error — not by color, so a rebrand or a dark theme does not mean renaming every usage.

03~1min

Generate and Refine

You get the whole set on one height scale with a live preview. Follow up in plain English — "add an outline variant", "clamp at 999+", "make the dot ring match a dark surface" — instead of nudging padding values.

04~2min

Drop It Into a Table and Check the Row Height

Put a badge in a real table cell and a real heading, then compare row heights against a cell without one. If anything grew, the line-height is not pinned and the fix belongs in the component, not the table.

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

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

एक ही प्रॉम्प्ट में अपनी ज़रूरत के टोन और मोड बताएं, जैसे "पाँच सिमेंटिक स्टेटस टोन के साथ न्यूमेरिक काउंट बैज और हटाने योग्य टैग चिप, दो साइज़ में"। MeDo एक हार्डकोडेड पिल के बजाय पूरा सेट जेनरेट करता है जो हाइट स्केल, रेडियस और पैडिंग साझा करता है।

बैज और टैग या चिप में क्या अंतर है?

बैज रीड-ओनली आउटपुट है: यह स्टेट या काउंट बताता है और फोकसेबल नहीं होना चाहिए। टैग या चिप इनपुट है जिस पर यूज़र कार्रवाई कर सकता है, आमतौर पर हटाकर, इसलिए इसे असली button, फोकस स्टाइल और एक्सेसिबल नाम चाहिए। दोनों को एक ही कम्पोनेंट मानना ही वजह है कि इतने UI में ऐसे टैग होते हैं जिन्हें कीबोर्ड यूज़र हटा नहीं सकता।

क्या बैज सिर्फ रंग से स्टेटस बता सकता है?

नहीं। WCAG 1.4.1 के अनुसार रंग जानकारी देने का एकमात्र साधन नहीं हो सकता, इसलिए बिना लेबल वाला लाल बैज कलरब्लाइंड और स्क्रीन रीडर यूज़र्स के लिए फेल होता है। टोन के साथ टेक्स्ट लेबल रेंडर करें, या आइकन के साथ विज़ुअली हिडन लेबल। जब आप टोन को सिमेंटिक रूप से बताते हैं, MeDo डिफ़ॉल्ट रूप से लेबल शामिल करता है।

99 से ज़्यादा नोटिफिकेशन काउंट कैसे दिखाएं?

दिखाई जाने वाली वैल्यू को क्लैम्प करें और थ्रेशोल्ड पार होने पर "99+" रेंडर करें; अगर असली संख्या मायने रखती है तो उसे एक्सेसिबल नाम में रखें। इसके साथ बैज की ऊँचाई के बराबर min-width रखें ताकि एक अंक के काउंट गोल बने रहें।

क्या काउंट बैज को स्क्रीन रीडर को बदलाव बताना चाहिए?

हाँ, जब काउंट पेज नेविगेशन के बिना अपडेट होता है। इसे aria-live="polite" रीजन में रैप करें ताकि नई वैल्यू यूज़र को बाधित किए बिना अनाउंस हो, और टेक्स्ट संक्षिप्त रखें — "3 अपठित" अकेली संख्या से बेहतर पढ़ा जाता है। यहाँ aria-live="assertive" से बचें, क्योंकि नोटिफिकेशन काउंट के लिए चल रही रीडिंग रोकना शायद ही उचित होता है।

डॉट बैज को अवतार पर क्लिप हुए बिना कैसे रखें?

अवतार रैपर को position: relative दें और overflow: hidden न रखें, फिर डॉट को absolute पोज़िशन करें और थोड़ा नेगेटिव ऑफसेट दें ताकि वह सर्कल से बाहर निकले। पेज सरफेस कलर में 2px रिंग जोड़ें ताकि व्यस्त फोटो पर भी डॉट साफ दिखे। अगर रैपर अपने चिल्ड्रन को क्लिप करता है, तो राउंडिंग किसी भीतरी एलिमेंट पर ले जाएं।

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

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