shadcn-component-installer

Install and verify shadcn/ui components via the official CLI with pnpm.

3|Updated Apr 5, 2024
One-click install
npx skills add https://github.com/danghungtb26/admin-react-typescript-template --skill shadcn-component-installer
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: shadcn-component-installer
Source: https://github.com/danghungtb26/admin-react-typescript-template/tree/main/.agents/skills/shadcn-component-installer
Command: npx skills add https://github.com/danghungtb26/admin-react-typescript-template --skill shadcn-component-installer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill ensures proper installation and verification of shadcn/ui components using the official CLI. It prevents manual component creation and guarantees correct configuration, dependencies, and styling integration.

Core Features & Use Cases

  • Install components via pnpm dlx shadcn@latest add <component> (CLI-driven)
  • Verify that components are installed under src/components/atoms/ and that required Radix and Tailwind integrations are configured
  • Use cases: quickly add button, dialog, table, or form components to an existing project with correct styling

Quick Start

pnpm dlx shadcn@latest add button pnpm dlx shadcn@latest add dialog pnpm dlx shadcn@latest add table Verify installation by checking: src/components/atoms/<component-name>.tsx and ensure dependencies in package.json

Frequently Asked Questions about shadcn-component-installer

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

FAQPage Schema
How do I install shadcn/ui components using the CLI?▼

Install shadcn/ui components by running `pnpm dlx shadcn@latest add <component>` (e.g., button or dialog). This CLI-driven approach ensures correct configuration, automatically handles Radix dependencies, and integrates Tailwind CSS variables without manual file creation.

What is the correct file path for shadcn/ui components installed via CLI?▼

Installed shadcn/ui components must be located under `src/components/atoms/`. Verifying this path ensures the official CLI correctly placed the component files and that required Radix UI and Tailwind integrations are properly configured for styling.

Do I need pnpm to add shadcn/ui components to my project?▼

Yes, this skill enforces CLI-based installation via pnpm using `pnpm dlx shadcn@latest add`. This specific package manager approach guarantees correct dependency resolution for Radix UI and Tailwind CSS variables during component setup.

Why does my manually created shadcn/ui component lack proper styling?▼

Manual component creation often misses required dependencies and CSS variable setup. Using the official shadcn CLI ensures proper installation, automatically configures @radix-ui/* packages, and validates Tailwind CSS variables for correct styling integration.

Can I use the shadcn CLI to add table and form elements?▼

Yes, you can quickly add table and form elements using the shadcn CLI. The installation process verifies that required Radix and Tailwind integrations are configured correctly under `src/components/atoms/` for immediate use.