/fuse-shadcn-ui:shadcn-componentsfrom fuse-shadcn-ui
Documents shadcn/ui component patterns across Base UI, Radix, and React Aria primitives. Covers API differences, component mapping, and composition patterns (render vs asChild vs trigger wrapper).
Ships in fuse-shadcn-ui. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Requires detecting the project's primitive first (shadcn-detection) and consulting the shadcn MCP for registry source instead of hand-writing component internals.
Before component work, spawn agents in parallel, one Agent call each with a name:
After: Run fuse-ai-pilot:sniper for validation.
| 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.
components/ui/
├── dialog.tsx # Adapted to detected primitive
├── select.tsx
├── accordion.tsx
└── ...
-> See dialog-example.md for complete component
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
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/onOpenChange |
| Raw data attrs | data-open, data-starting-style, data-side | data-state="open", data-side | data-entering/data-exiting, data-placement, data-focused, data-pressed |
Shared data-open: / data-closed: / data-checked: Tailwind variants (from shadcn/tailwind.css) match both [data-state=...] and [data-open].
| Component | Base UI | Radix | React Aria |
|---|---|---|---|
Toast (@base-ui/react/toast, toast.add()) | yes (July 2026) | no: use Sonner | no: use Sonner |
| Sonner | registry item exists; docs route to Toast | yes | yes |
| Menubar, Navigation Menu | yes | yes | no (r/styles/aria-nova/{menubar,navigation-menu}.json → 404) |
Questionnaire (styled over @shadcn/react/questionnaire) | yes | yes | yes |
| MessageScroller, Message, Bubble, Attachment, Marker (chat, June 2026) | yes | yes | yes (docs pages exist) |
Trace (add trace: Trace, TraceLine with status="running|error|pending", TraceIcon, TraceTitle; agent steps) and Code Block (add code-block: CodeBlock, CodeBlockHeader, CodeBlockTitle, CodeBlockActions, CodeBlockCopyButton, CodeBlockContent, CodeBlockLine, CodeBlockFooter; installs useHighlightedCode) (Oct 2026, all 8 styles) | yes | yes (Trace uses Collapsible) | yes (r/styles/aria-nova/{trace,code-block}.json) |
Blocks (login-01, sidebar, dashboard...) | yes | yes | yes (e.g. r/styles/aria-nova/login-01.json); add picks the project base |
Forms (/docs/forms): every guide builds on Field, FieldLabel, FieldDescription, FieldError, FieldGroup with data-invalid on Field and aria-invalid on the control — React Hook Form (Controller + Zod zodResolver), TanStack Form (form.Field render prop + Zod), Formisch (Form + Field, Valibot schema), Next.js (Server Action + useActionState, server-side Zod).
@shadcn/react = unstyled headless primitives (@shadcn/react/questionnaire, @shadcn/react/message-scroller); @shadcn/helpers (/ai-sdk, /tanstack-ai) = scripted useChat conversations for demos/tests, not UI. Typography for rendered markdown: shadcn/typeset (one typeset.css, className="typeset").
AI Elements (Oct 2026, /docs/ai-elements, 21 patterns: Chat, Prompt Input, Reasoning, Tool, Plan, Subagent, Chain of Thought, Sources, Terminal...) = copy-in compositions of shadcn components, NOT a package and NOT a registry component to add by name: read the pattern page (/docs/ai-elements/<base>/<name>, also as .md) and build it from Trace, Code Block, Message, Message Scroller. Replaces AI SDK Elements (to be deprecated; already-installed copies keep working, each pattern page has a migration prompt).
asChild<Dialog.Trigger asChild>
<Button variant="outline">Open</Button>
</Dialog.Trigger>
render<Dialog.Trigger render={<Button variant="outline" />}>
Open
</Dialog.Trigger>
asChild, no render)<DialogTrigger>
<Button variant="outline">Open</Button>
<Dialog>
<DialogHeader>
<DialogTitle>Title</DialogTitle>
</DialogHeader>
</Dialog>
</DialogTrigger>
| Topic | Reference | When to Consult |
|---|---|---|
| Radix APIs | radix-components.md | Building with Radix primitives |
| Base UI APIs | baseui-components.md | Building with Base UI primitives |
| React Aria APIs | Tables above + dialog-example.md | Building with React Aria primitives |
| Template | When to Use |
|---|---|
| dialog-example.md | Creating Dialog components |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
shadcn-ui, radix-ui, base-ui, react-aria, component-patterns
5 skills in this plugin
/shadcn-detectionUse when determining which component base (Base UI, Radix UI or React Aria) a shadcn/ui project uses, before any component work or migration./shadcn-migrationUse when migrating a shadcn/ui project between Radix UI and Base UI primitives, or validating a migration's API transformations./shadcn-registriesUse when configuring shadcn/ui registries (namespaced, GitHub, dynamic), components.json, presets, or any shadcn CLI command (init, add, apply, preset, view, search, docs, info, migrate, eject, build, registry).npx claudepluginhub fusengine/claude-plugins --plugin fuse-shadcn-uiOther plugins' skills for the same job