react-vite-dashboard
यह क्या करती है
यह स्किल React, Vite और डेटा लोड करने वाले टूल्स से Stitch स्क्रीन के डैशबोर्ड वेब ऐप बनाती है। यह उन फ़्रंटएंड डेवलपर्स के लिए है जो डेटा-भारी एडमिन या एनालिटिक्स स्क्रीन बनाते हैं।
कब इस्तेमाल करें
- ✓जब आप Stitch डिज़ाइन से डेटा डैशबोर्ड बनवाना चाहते हैं।
- ✓जब आपके डैशबोर्ड को API से डेटा लोड और ताज़ा करना हो।
- ✓जब आप चाहते हैं कि रंग और spacing DESIGN.md फ़ाइल के अनुसार हों।
Skill का लिंक
https://github.com/google-labs-code/stitch-skills/blob/main/plugins/stitch-build/skills/react-vite-dashboard/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरी Stitch स्क्रीन से React और Vite डैशबोर्ड बनाइए, और बिक्री के आंकड़े हमारे API से लोड कीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह Stitch स्क्रीन डाउनलोड करती है, डिज़ाइन टोकन को CSS variables से जोड़ती है, और कोड को कंपोनेंट, पेज और डेटा hooks में बांटती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Stitch to React + Vite Dashboard
You are a frontend engineer building data-dense dashboards from Stitch screens. Target stack: React 18, Vite, TypeScript, TanStack Query, React Router, and optional ethers v6 or viem for on-chain reads.
Prerequisites
- Stitch MCP configured (setup guide)
- A project
DESIGN.md(see thedesign-mdskill) for token fidelity - Vite + React + TypeScript scaffold (
npm create vite@latest)
Workflow
- Discover MCP prefix — run
list_tools, note the Stitch prefix (e.g.stitch:). - Fetch screen —
[prefix]:get_screenwith project and screen IDs. - Download assets — persist HTML/screenshot under
.stitch/designs/{screen}.htmland.png. - Read DESIGN.md — map
colors.*,typography.*,spacing.*to CSS variables insrc/index.css. - Generate components — split into
src/components/,src/pages/,src/hooks/. - Wire data — use TanStack Query for async fetches; keep presentational components pure.
HTML → React mapping
| Pattern | Implementation |
|---|---|
| Layout grid / flex | Tailwind utilities or CSS modules aligned to DESIGN.md spacing tokens |
| Cards / panels | <section> with tokenized border-radius and elevation fallbacks for forced-colors |
| Tables | Semantic <table> or TanStack Table; never div-only grids for tabular data |
| Buttons | <button type="button"> with visible focus ring (preserve browser default unless DESIGN.md defines focus tokens) |
| Forms | <label htmlFor> + <input id>; associate errors with aria-describedby |
| Loading | Skeleton components; aria-busy on containers during fetch |
| Wallet connect | Isolate in WalletProvider; never embed private keys in generated code |
DESIGN.md integration
/* src/index.css — example token bridge */
:root {
--color-primary: /* from DESIGN.md colors.primary */;
--font-body: /* typography.body-md.fontFamily */;
}
Run the design.md linter locally before shipping UI:
npx @google/design.md lint DESIGN.md
Web3 dashboard conventions
- Read-only contract calls via
useReadContract(viem/wagmi) or ethersContract+ TanStack QueryqueryFn. - Format token amounts with
formatUnits; show network name and chain ID in settings footer. - Surface transaction errors in plain language; link to block explorer when
txHashexists. - Gas-sensitive flows: batch reads, avoid redundant
eth_callin render loops.
File structure
src/
├── components/ # Presentational UI from Stitch
├── pages/ # Route-level screens
├── hooks/ # useQuery wrappers, wallet hooks
├── lib/ # ABI helpers, formatters
└── styles/ # Token CSS variables
Quality checklist
- WCAG 2.2 AA: contrast from DESIGN.md component pairs passes linter
- Keyboard navigable: focus order matches visual order
- Responsive: test at 375px and 1280px widths
- No secrets in repo: RPC URLs from env (
VITE_*prefix only for public endpoints) - TypeScript strict: no
anyon contract ABIs
Stitch docs note
When following links on stitch.withgoogle.com/docs, use the full https://stitch.withgoogle.com/docs/... URL if relative navigation redirects incorrectly.
अक्सर पूछे जाने वाले सवाल
TanStack Query क्या है?
यह एक लाइब्रेरी है जो React स्क्रीन के लिए डेटा लोड, कैश और ताज़ा करती है।
क्या मुझे DESIGN.md फ़ाइल चाहिए?
स्किल के साथ इसका सबसे अच्छा काम होता है, क्योंकि वह रंग, टाइप और spacing मिलाने के लिए इसे इस्तेमाल करती है।
क्या यह blockchain डेटा सपोर्ट करती है?
हाँ, यह ethers या viem के साथ on-chain reads के वैकल्पिक सपोर्ट का ज़िक्र करती है।
जानकारी
लेखक का मूल विवरण
Convert Stitch designs into production React + Vite dashboards with TanStack Query, accessible tokens from DESIGN.md, and Web3-ready patterns (ethers/viem).
लोकप्रियता
- GitHub स्टार
- 8.7k
- रैंकिंग में स्थान
- #12339
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 17/8/2026
कमेंट
- …
इस repository की और skills
stitch::react-components
8.7kयह आपके एजेंट को Stitch डिज़ाइन को React और Vite कंपोनेंट में बदलने, या मौजूदा कंपोनेंट को नए डिज़ाइन से मिलाने में मदद करती है, जांच के साथ।
stitch::react-native
8.7kयह आपके एजेंट को Stitch वेब डिज़ाइन को React Native कंपोनेंट में बदलने, या मौजूदा मोबाइल स्क्रीन नए डिज़ाइन से मिलाने में मदद करती है।
shadcn-ui
8.7kयह आपके एजेंट को shadcn/ui कंपोनेंट खोजने, जोड़ने और अपने हिसाब से बदलने में मदद करती है, जो Tailwind CSS पर आधारित हैं।
stitch::code-to-design
8.7kयह आपके एजेंट को मौजूदा वेब ऐप, जैसे React, Vue या Angular, को Stitch डिज़ाइन में लाने में मदद करती है, ताकि आप उसे वहां और बेहतर बना सकें।
मिलती-जुलती skills
angular-developer
280kआपके एजेंट को Angular code बनाने और प्रोजेक्ट स्ट्रक्चर पर सलाह देने में मदद करता है। नए प्रोजेक्ट शुरू करने, code के हिस्से बनाने, या performance और accessibility सुधारने में उपयोगी है।
frontend-a11y
280kआपके एजेंट को web interfaces को सबके लिए accessible बनाने में मदद करता है। यह सुनिश्चित करता है कि websites और apps screen readers और keyboard navigation के साथ अच्छे से काम करें।
frontend-patterns
280kआपके एजेंट को React और Next.js में frontend development के modern patterns लागू करने में मदद करता है। यह performance optimize करता है, state manage करता है और best practices फॉलो करवाता है।