shadcn_ui

Vendor shadcn/ui components into EOS SaaS repos with Radix and Tailwind.

1|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/antonyfmunoz/OS --skill shadcn-ui-antonyfmunoz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shadcn_ui
Source: https://github.com/antonyfmunoz/OS/tree/main/skills/tools/shadcn_ui
Command: npx skills add https://github.com/antonyfmunoz/OS --skill shadcn-ui-antonyfmunoz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

shadcn_ui prevents UI drift and broken Radix/RHF integration by standardizing how your agents add and modify shadcn/ui components in the /opt/OS/saas codebase.

Core Features & Use Cases

  • Scaffold and vendor shadcn components into each EOS SaaS repo so teams edit source code instead of relying on runtime packages.
  • Use the correct composition patterns for Radix + triggers (including asChild to avoid nested interactive elements and accessibility bugs).
  • Integrate forms and tables safely using the shadcn Form primitives (React Hook Form + zodResolver) and the DataTable pattern (TanStack Table).

Quick Start

Use this skill to add a new UI component set by asking: “Initialize shadcn for my EOS Vite app with the new-york style, then add the button, dialog, and form primitives in /opt/OS/saas/my-app so the components are vendored and ready to use.”

Frequently Asked Questions about shadcn_ui

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I vendor shadcn/ui components into a React app instead of using runtime packages?

You vendor shadcn/ui components by using the shadcn CLI to copy Radix-based React source code directly into your repository, allowing you to edit source code directly while maintaining consistent theming via Tailwind CSS variables.

How do I integrate React Hook Form with shadcn/ui form primitives?

You integrate React Hook Form with shadcn/ui by wiring shadcn Form primitives with zodResolver for validation, ensuring accessible UI components are correctly composed within your React application.

What is the correct way to use Radix UI asChild to avoid nested interactive elements?

Using the Radix UI asChild prop prevents nested interactive elements and accessibility bugs by forwarding props to a single child element, allowing safe composition with triggers using cn() and tailwind-merge for class management.

How do I build a DataTable using TanStack Table and shadcn/ui components?

Build a DataTable using TanStack Table and vendored shadcn/ui components by applying the standardized DataTable pattern, which provides accessible primitives and consistent theming for complex table features within your SaaS application.

Do I need zod and Tailwind CSS configured before adding shadcn/ui components?

Yes, you need Tailwind CSS theme configuration and the components.json file set up before vendoring shadcn/ui components, ensuring consistent theming via CSS variables and proper schema validation when integrating with React Hook Form.

Why does my shadcn/ui component styling break when overriding Tailwind classes?

Styling breaks when overriding Tailwind classes if you bypass the cn() and tailwind-merge class composition rules, which are required to safely merge conflicting classes and maintain consistent theming across vendored Radix primitives.