Enforces Base UI patterns in shadcn/ui projects so Radix-style suggestions like asChild are not generated.

CCM score
55 of 100
skills.sh installs
254
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers slot usage for trigger and wrapper components, replacing asChild with the render prop across dialogs, popovers, menus, tabs, and accordions
  • Includes prop differences for Accordion (the multiple flag and array-based defaultValue), Button (nativeButton={false} when rendering links), and Select (alignItemWithTrigger)
  • Requires components.json to have a style value starting with "base-" and @base-ui/react to be installed before any suggestion applies
  • Designed for shadcn/ui projects built on Base UI rather than Radix UI

Install

$ npx -y skills add thunderboltdev/shadcn-baseui --skill shadcn-baseui -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

shadcn/ui + Base UI Guidelines

A guide for using shadcn/ui components when working with Base UI. Prevents LLMs from incorrectly suggesting Radix UI patterns (asChild, etc.).

⚠️ CRITICAL: Before suggesting any code, verify this is a Base UI project by checking components.json. The style field should start with "base-" (e.g., "base-vega", "base-nova", "base-maia", "base-lyra", "base-mira"). If it starts with something else, this skill does not apply.

Ensure the @base-ui/react package is installed. If not, install it using the appropriate package manager.

Slot Pattern

The major difference between Radix UI and Base UI is the slot pattern. Radix UI uses asChild, while Base UI uses the render prop. Always use render prop over asChild.

Rule: Always use render prop instead of asChild for ALL trigger/wrapper components.

Applies to: DialogTrigger, AlertDialogTrigger, PopoverTrigger, DropdownMenuTrigger, TooltipTrigger, SelectTrigger, TabsTrigger, AccordionTrigger, Button (when wrapping links), etc.

// ❌ INCORRECT
<DialogTrigger asChild>
  <Button variant="outline">Click me</Button>
</DialogTrigger>

Details

Repository
github.com/thunderboltdev/shadcn-baseui
Categories
Frontend & UI Code, Technical Documentation
First seen
Jun 3, 2026

Similar to Shadcn Baseui

More Frontend & UI Code