Loading...
Loading...
Compare original and translation side by side
/ork:component-search animated pricing table
/ork:component-search sidebar with collapsible sections
/ork:component-search dark mode toggle switch/ork:component-search animated pricing table
/ork:component-search sidebar with collapsible sections
/ork:component-search dark mode toggle switchQuery: "animated pricing table with monthly/annual toggle"
│
▼
┌──────────────────────────────┐
│ 21st.dev Magic MCP │ Search 1.4M+ developer registry
│ @21st-dev/magic │ Filter: React, Tailwind, shadcn
└──────────┬───────────────────┘
│
▼
┌──────────────────────────────┐
│ Results (ranked by relevance)│
│ │
│ 1. PricingToggle (98% match) │ ★ 2.3K views · shadcn/ui
│ 2. PricingCards (87% match) │ ★ 1.8K views · Radix
│ 3. AnimatedPricing (82%) │ ★ 950 views · Motion
└──────────────────────────────┘Query: "animated pricing table with monthly/annual toggle"
│
▼
┌──────────────────────────────┐
│ 21st.dev Magic MCP │ 搜索140万+开发者组件库
│ @21st-dev/magic │ 过滤条件:React, Tailwind, shadcn
└──────────┬───────────────────┘
│
▼
┌──────────────────────────────┐
│ 结果(按相关性排名) │
│ │
│ 1. PricingToggle(匹配度98%) │ ★ 2.3K次浏览 · shadcn/ui
│ 2. PricingCards(匹配度87%) │ ★ 1.8K次浏览 · Radix
│ 3. AnimatedPricing(匹配度82%)│ ★ 950次浏览 · Motion
└──────────────────────────────┘QUERY = "" # Component description
TaskCreate(subject="Component search: {QUERY}", description="Search 21st.dev registry")QUERY = "" # 组件描述
TaskCreate(subject="Component search: {QUERY}", description="Search 21st.dev registry")undefinedundefinedundefinedundefined
**If 21st-dev-magic is NOT available (fallback):**
```python
**如果21st-dev-magic不可用(备选方案):**
```pythonundefinedundefinedAskUserQuestion(questions=[{
"question": "Which component to use?",
"header": "Component",
"options": [
{"label": "{name_1} (Recommended)", "description": "{desc_1} — {views_1} views"},
{"label": "{name_2}", "description": "{desc_2} — {views_2} views"},
{"label": "{name_3}", "description": "{desc_3} — {views_3} views"},
{"label": "None — generate from scratch", "description": "Build a custom component instead"}
],
"multiSelect": false
}])AskUserQuestion(questions=[{
"question": "Which component to use?",
"header": "Component",
"options": [
{"label": "{name_1} (Recommended)", "description": "{desc_1} — {views_1} views"},
{"label": "{name_2}", "description": "{desc_2} — {views_2} views"},
{"label": "{name_3}", "description": "{desc_3} — {views_3} views"},
{"label": "None — generate from scratch", "description": "Build a custom component instead"}
],
"multiSelect": false
}])npm installnpm install| Project Stack | Search Filter | Notes |
|---|---|---|
| React + Tailwind | Default — best coverage | Most 21st.dev components |
| React + CSS Modules | Filter non-Tailwind | Fewer results |
| Next.js App Router | Prefer RSC-compatible | Check "use client" directives |
| Vue / Svelte | Not supported | 21st.dev is React-only |
| 项目技术栈 | 搜索过滤条件 | 说明 |
|---|---|---|
| React + Tailwind | 默认选项——覆盖范围最广 | 21st.dev上的大多数组件都支持 |
| React + CSS Modules | 过滤非Tailwind组件 | 结果较少 |
| Next.js App Router | 优先选择兼容RSC的组件 | 需检查"use client"指令 |
| Vue / Svelte | 不支持 | 21st.dev仅支持React |
ork:design-to-codeork:design-system-tokensork:ui-componentsork:design-to-codeork:design-system-tokensork:ui-components