सीधे content पर जाएँ

website to Figma components

Website to Figma components, hover variants के साथ

Website to Figma components अपने-आप: दोहराए गए cards, buttons और menu items instances बनते हैं, और hover वाला रूप Default/Hover variants बनता है।

  • दोहराए गए structures एक main component और उसके instances बनते हैं
  • हर instance पर text, image और visibility overrides बने रहते हैं
  • Hover वाला रूप Default और Hover variants वाला component set बनता है
  • Main components एक "Components · <site>" frame में इकट्ठा होते हैं

EUREKA! · · 5 मिनट का लेख

Website to Figma components, hover variants के साथ

Website से Figma components तक पहुँचना वह जगह है जहाँ ज़्यादातर imports रुक जाते हैं: बारह product cards वाला पेज बारह असंबंधित layer groups बनकर आता है, इसलिए corner radius बदलने का मतलब है उसे बारह बार बदलना। HTML to Frames पहचानता है कि वे cards एक ही design की दोहराई गई copies हैं और उन्हें वैसे ही बनाता है: एक main component, बारह instances।

Components & hover states चालू होने पर HTML to Frames cards, buttons और menu items जैसे दोहराए गए structures ढूँढता है और उन्हें components और instances में बदलता है, हर copy का अपना text और images रखते हुए। जो elements hover पर बदलते हैं, वे Default और Hover variants वाला component set बनते हैं, prototyping के लिए पहले से जुड़े हुए।

Components & hover states क्या करता है

  • दोहराए गए structures components बनते हैं. एक जैसे structure वाले frames का कोई भी group (grid के cards, buttons, nav items, list rows) एक main component बनता है, और पेज पर उसकी हर मौजूदगी उसका instance।
  • Overrides बने रहते हैं. हर instance अपना text (अपनी styling के साथ), अपनी images और अपनी visibility रखता है, इसलिए बारह cards अब भी बारह अलग products दिखाते हैं। Links भी हर instance पर बने रहते हैं।
  • Hover वाला रूप variants बनता है. जब कोई element hover पर अलग दिखता है, तो component एक State property वाला component set बन जाता है: Default और Hover।
  • Prototype interaction शामिल. Default variant को On hover → Change to Hover interaction मिलता है, इसलिए Present mode में hover तुरंत काम करता है।
  • Main components एक जगह. वे import हुई screens के बगल में Components · <site> नाम के frame में इकट्ठा होते हैं।
दोहराए गए cards instances बनते हैं; hover एक variant बनता है

यह कैसे काम करता है

Components, Auto Layout के बाद बनते हैं, इसलिए वे तैयार, responsive frames से बनते हैं।

  1. हर frame का fingerprint. हर frame को एक structural fingerprint मिलता है: layer types, size (जब तक frame अपने content को hug न करे), fills, strokes, corner radius, effects, Auto Layout settings, vector shapes और उसके children की बनावट। Text content और image content fingerprint का हिस्सा नहीं हैं, इसीलिए अलग titles और photos वाले cards भी मेल खाते हैं।
  2. Matches के groups. एक जैसे fingerprint वाले frames जो कम से कम दो बार आते हैं, एक group बनाते हैं। Hover रूप वाला अकेला element भी qualify करता है, इसलिए एक बार आने वाले call-to-action button को भी उसके variants मिल सकते हैं।
  3. प्राथमिकता. Hover state वाले groups पहले आते हैं, फिर सबसे बड़े दोहराए गए structures। हर पेज पर 60 तक components बनते हैं, और जो structure पहले से चुने गए component के अंदर है, उसका अलग component नहीं बनता।
  4. Main component बनाना. पहली मौजूदगी main component बनती है और Components · <site> frame में चली जाती है।
  5. Instances रखना और verify करना. हर मौजूदगी को उसके overrides copy करके एक instance से बदला जाता है। Instance को उसी position और size पर पहुँचना होता है जिस layer को वह बदल रहा है, 1 px के अंदर। न पहुँचे तो original layer ही रहती है। Auto Layout की तरह, component बनाने के लिए पेज कभी नहीं टूटता।

Hover state कहाँ से आती है

Capture के दौरान पेज के links और buttons (a[href], button, role="button", submit buttons और summary; चलते text के अंदर के सादे links छोड़ दिए जाते हैं) को उनकी CSS :hover state में डालकर फिर पढ़ा जाता है, हर पेज पर 60 elements तक। जिस भी element का रूप बदलता है, उसका hover snapshot लिया जाता है, जो Hover variant बनता है।

Results screen नतीजा बताती है: "… components with … instances, … with a hover variant — main components are in the 'Components' frame."

यह अलग क्यों है

Hover components सिर्फ़ HTML to Frames की ख़ासियत नहीं हैं। जिन public docs की हमने समीक्षा की (अक्टूबर 2026), उनमें html.to.design hover states से component variants बनाने का वर्णन करता है, और इसे अपने Free plan में शामिल करता है।

फ़र्क इसमें है कि component किससे बनता है। Hover पर आधारित components सिर्फ़ interactive elements को cover करते हैं। HTML to Frames ऐसे दोहराए गए structures भी पकड़ता है जिनमें कोई hover state ही नहीं है: product cards, testimonial blocks, feature tiles, footer columns, table rows। उन public docs में हमें सिर्फ़ दोहराव से components बनने का वर्णन नहीं मिला। Design system team के लिए ज़्यादातर काम यही है: दोहराया गया card ही वह component है जो आप सबसे पहले बनाते।

Hover पर आधारित componentsHTML to Frames
Hover रूप वाले buttons और linksVariants वाला componentComponent set, Default और Hover
बिना hover वाले दोहराए गए cards और tilesहमने जिन docs की समीक्षा की, उनमें वर्णन नहींMain component और instances
हर copy का text और imagesहमने जिन docs की समीक्षा की, उनमें वर्णन नहींInstance overrides के रूप में बने रहते हैं

इसे कैसे इस्तेमाल करें

  1. HTML to Frames खोलें और एक source जोड़ें: Link, Multiple, Local file या Browser।
  2. Options में पक्का करें कि Components & hover states चालू है। Pro और Team पर यह default से चालू है।
  3. सबसे अच्छे results के लिए Auto Layout चालू रखें; components, Auto Layout frames से बनते हैं।
  4. Import दबाएँ।
  5. अपनी screens के बगल में Components · <site> frame ढूँढें, फिर Present दबाएँ और किसी button पर hover करके variant बदलता देखें।
Hover variants वाले components के रूप में import हुए दोहराए गए cards और buttons
Hover variants वाले components के रूप में दोहराए गए cards और buttons

Components & hover states, Pro और Team feature है। Launch पर Pro $7/माह है और Figma के अंदर ही ख़रीदा जाता है।

यह सबसे ज़्यादा कब काम आता है

  • Design system teams जो किसी live product को reverse-engineer कर रही हैं: components frame, component inventory का पहला draft है।
  • Agencies जो redesign की तैयारी कर रही हैं: एक card component को restyle करें और पूरा grid साथ बदल जाता है, जिससे before/after proposals जल्दी बनते हैं।
  • Prototypers जिन्हें हर button हाथ से जोड़े बिना असली जैसा hover व्यवहार चाहिए।
  • Consistency audit करने वाले designers. जहाँ एक component की उम्मीद थी वहाँ कई लगभग-एक-जैसे components का मतलब आम तौर पर यह है कि site के cards code में अलग-अलग हो गए हैं।

जानने लायक बातें

  • Matching सख़्त है. दो cards एक component के instances तभी बनते हैं जब उनका structure मेल खाए; एक अतिरिक्त badge वाले card का fingerprint अलग होता है और उसे अलग माना जाता है।
  • Hover 1024 px और उससे ज़्यादा widths पर capture होता है, इसलिए Desktop और Laptop screens को hover variants मिलते हैं। Tablet और Mobile screens को फिर भी दोहराए गए structures से components मिलते हैं।
  • सिर्फ़ CSS :hover capture होता है. Mouse आने पर JavaScript से खुलने वाले menus Hover variant नहीं बनाते।
  • Chrome extension captures में hover states शामिल नहीं होतीं. दोहराए गए structures से components फिर भी बनते हैं।
  • सिर्फ़ दो states: Default और Hover। Focus, active और disabled states capture नहीं होतीं।
  • हर पेज पर 60 तक components। Components & hover states, Pro और Team feature है।

और देखें

Plugin लें और product grid वाला कोई पेज import करें: components frame आपको उसके पीछे का system दिखा देता है।

अक्सर पूछे जाने वाले सवाल

क्या किसी website को Figma में components के रूप में import किया जा सकता है?
हाँ। Components & hover states चालू होने पर HTML to Frames cards, buttons और menu items जैसे दोहराए गए structures को instances वाले एक main component में बदलता है। हर instance अपना text और images overrides के रूप में रखता है, और main components screens के बगल में एक Components frame में इकट्ठा होते हैं।
यह कैसे तय करता है कि कौन से elements एक ही component हैं?
हर frame को एक structural fingerprint मिलता है, जिसमें उसके layer types, size, fills, strokes, radius, effects, Auto Layout settings और children की बनावट शामिल हैं। Text और image content इससे बाहर रखे जाते हैं, इसलिए अलग content वाले cards भी मेल खाते हैं। एक जैसे fingerprint वाले frames जो कम से कम दो बार आते हैं, एक component बनते हैं।
क्या hover states import होती हैं?
हाँ, 1024 px और उससे ज़्यादा widths पर links और buttons की CSS hover states। जिन elements का रूप hover पर बदलता है, वे Default और Hover variants वाला component set बनते हैं, साथ में Present mode के लिए On hover interaction। JavaScript से खुलने वाले hover menus capture नहीं होते।
अगर कोई instance original layer से मेल न खाए तो?
हर instance को उस layer से मिलाया जाता है जिसे वह बदल रहा है, और उसे 1 px के अंदर उसी position और size पर पहुँचना होता है। न पहुँचे तो original layer अपनी जगह रहती है। Component न रखा जा सके तब भी पेज अपना रूप बनाए रखता है।
Components & hover states किस plan में शामिल है?
Components & hover states, Pro और Team में शामिल है। Launch पर Pro $7 प्रति माह है और Figma के अंदर ही ख़रीदा जाता है। Free plan पर यह option PRO badge के साथ दिखता है।

Web pages को दोबारा हाथ से बनाना अब बंद।

Link paste कीजिए और कुछ ही सेकंड में असली, editable, responsive Figma layers पाइए। शुरुआत मुफ़्त है — हर महीने 10 imports।

Web pages को दोबारा हाथ से बनाना अब बंद।

Link paste कीजिए और कुछ ही सेकंड में असली, editable, responsive Figma layers पाइए। शुरुआत मुफ़्त है — हर महीने 10 imports।

Credit card की ज़रूरत नहीं। Pro सीधे Figma के अंदर ही ख़रीदा जाता है।

जल्द ही Figma Community पर