shadcn-components
БесплатноБез исполняемых скриптовНе проверенUse when building or editing shadcn/ui components, mapping Base UI vs Radix vs React Aria APIs, or choosing a composition pattern (render vs asChild vs…
от Fusengine★ 36 звёзд на GitHubОб этом скилле
Requires detecting the project's primitive first (shadcn-detection) and consulting the shadcn MCP for registry source instead of hand-writing component internals.
shadcn Components
Agent Workflow (MANDATORY)
Before component work, spawn agents in parallel, one Agent call each with a name:
- fuse-ai-pilot:explore-codebase - Find existing components
- fuse-ai-pilot:research-expert - Verify component APIs via Context7
- mcp__shadcn__search_items_in_registries - Search available components
After: Run fuse-ai-pilot:sniper for validation.
Overview
| Feature | Description |
|---|---|
| Base UI primitives | Default base for new projects since 2026-07-02 (base-* styles, @base-ui/react); init --defaults = Next.js template + nova preset on the base base = base-nova |
| Radix primitives | Original base (2023), still fully supported (radix-* styles, unified radix-ui package); init -b radix |
| React Aria primitives | Third base since 2026-07-17 (aria-* styles, react-aria-components); init -b aria |
| Component mapping | Same shadcn wrapper names for Base UI and Radix; React Aria wrappers differ (see below) |
| API differences | render vs asChild vs trigger wrapper, part naming, data attributes |
cn import |
Components import cn from the cn package (Sept 2026); lib/utils.ts is export { cn } from "cn" |
Get base-specific docs, examples and API links from the CLI: {runner} shadcn@latest docs dialog --base aria (--base base|radix|aria, defaults to the project base). Component pages: /docs/components/{base|radix|aria}/<name>, each with a Composition tree.
Critical Rules
- ALWAYS detect primitive before component work (shadcn-detection)
- ALWAYS consult MCP before adding any component
- NEVER mix Base UI, Radix and React Aria APIs in same component
- MATCH composition pattern to detected primitive
- USE registry source as truth, not manual code
Architecture
components/ui/
├── dialog.tsx # Adapted to detected primitive
├── select.tsx
├── accordion.tsx
└── ...
-> See dialog-example.md for complete component
MCP Usage (MANDATORY)
ALWAYS consult shadcn MCP before adding components:
mcp__shadcn__search_items_in_registries -> find component
mcp__shadcn__view_items_in_registries -> view source
mcp__shadcn__get_add_command_for_items -> get install command
Component Mapping Table
Primitive parts used inside components/ui/*.tsx (registry *-nova sources, ui.shadcn.com/r/styles/<style>/<name>.json):
| Component | Radix Part | Base UI Part | React Aria Part |
|---|---|---|---|
| Dialog content | Dialog.Content |
Dialog.Popup |
Modal > Dialog |
| Dialog overlay | Dialog.Overlay |
Dialog.Backdrop |
ModalOverlay |
| Select | Select.Content |
Select.Positioner + Select.Popup (+ Select.List) |
Select + Popover > ListBox |
| Tooltip | Tooltip.Content |
Tooltip.Positioner + Tooltip.Popup |
TooltipTrigger > Tooltip |
| Accordion | Accordion.Content |
Accordion.Panel |
DisclosureGroup > Disclosure > DisclosurePanel |
| Popover | Popover.Content |
Popover.Positioner + Popover.Popup |
DialogTrigger > Popover |
| Menu | DropdownMenu.Content |
Menu.Positioner + Menu.Popup |
MenuTrigger > Popover > Menu |
| Combobox | none (uses @base-ui/react Combobox) |
Combobox.* |
ComboBox + Popover > ListBox |
Wrapper API at call sites (@/components/ui/*):
| Wrapper usage | Base UI | Radix | React Aria |
|---|---|---|---|
| Dialog | Dialog > DialogTrigger + DialogContent |
same as Base UI | DialogTrigger > Button + Dialog (no DialogContent) |
| Popover / Tooltip / DropdownMenu | X > XTrigger + XContent |
same | XTrigger > Button + X (e.g. DropdownMenuTrigger > Button + DropdownMenu) |
| Accordion | defaultValue={["a"]}, multiple |
type="single" collapsible defaultValue="a", type="multiple" |
defaultExpandedKeys={["a"]}, allowsMultipleExpanded, items use id |
| Select | items prop on Select, SelectItem value |
SelectItem value |
placeholder on Select, SelectItem id |
| Combobox | items + ComboboxList render function |
same as Base UI | ComboboxList children, renderEmptyState, ComboboxItem id |
| Events / state | onClick, disabled, open/onOpenChange |
same | onPress, isDisabled, `isOpen |
Установить shadcn-components в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditGlobGrepTaskmcp__shadcn__search_items_in_registriesmcp__shadcn__view_items_in_registriesmcp__shadcn__get_item_examples_from_registriesmcp__shadcn__get_add_command_for_itemsВложенные файлы
FAQ
Что делает скилл shadcn-components?
Use when building or editing shadcn/ui components, mapping Base UI vs Radix vs React Aria APIs, or choosing a composition pattern (render vs asChild vs trigger wrapper).
Как установить скилл shadcn-components?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл shadcn-components запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic