shadcn-ui
✓具有 Radix 原语和 Tailwind 样式的 shadcn/ui 组件模式。在构建 UI 组件、使用 CVA 变体、实现复合组件或使用数据槽属性设置样式时使用。在 shadcn、cva、cn()、数据槽、Radix、Button、Card、Dialog、VariantProps 上触发。
SKILL.md
Tokens: bg-background, text-foreground, bg-primary, text-primary-foreground, bg-card, text-card-foreground, border-input, text-muted-foreground
| Multiple visual variants (primary, outline, ghost) | Yes | Plain className | | Size variations (sm, md, lg) | Yes | Plain className | | Compound conditions (outline + large = thick border) | Yes | Conditional cn() | | One-off custom styling | No | className prop | | Dynamic colors from props | No | Inline styles or CSS variables |
| Complex UI with multiple semantic parts | Yes | Single component with many props | | Optional sections (header, footer) | Yes | Boolean show/hide props | | Different styling for each part | Yes | CSS selectors | | Shared state between parts | Yes + Context | Props drilling | | Simple wrapper with children | No | Single component |
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/existential-birds/beagle --skill shadcn-ui- 分类
- *创意媒体
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 shadcn-ui?
具有 Radix 原语和 Tailwind 样式的 shadcn/ui 组件模式。在构建 UI 组件、使用 CVA 变体、实现复合组件或使用数据槽属性设置样式时使用。在 shadcn、cva、cn()、数据槽、Radix、Button、Card、Dialog、VariantProps 上触发。 来源:existential-birds/beagle。
如何安装 shadcn-ui?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/existential-birds/beagle --skill shadcn-ui 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/existential-birds/beagle
详情
- 分类
- *创意媒体
- 来源
- skills.sh
- 收录时间
- 2026-02-01