Complete guide to building accessible React components with shadcn/ui, Radix UI, and Tailwind CSS.
Works with
Install and configure components via CLI ( npx shadcn@latest add ), then customize directly in your project since you own the code
Covers 10+ core components: buttons, inputs, forms with Zod validation, cards, dialogs, dropdowns, sheets, tables, toasts, and charts built on Recharts
Full Next.js App Router integration with Server Components, form handling, and metadata support; all compo
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionshadcn-uiExecute the skills CLI command in your project's root directory to begin installation:
Fetches shadcn-ui from giuseppe-trisciuoglio/developer-kit and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate shadcn-ui. Access via /shadcn-ui in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
2
total installs
2
this week
194
GitHub stars
0
upvotes
Run in your terminal
2
installs
2
this week
194
stars
Build accessible, customizable UI components with shadcn/ui, Radix UI, and Tailwind CSS.
npx shadcn@latest add <component>Activate when user requests involve:
| Component | Install Command | Description |
|---|---|---|
button |
npx shadcn@latest add button |
Variants: default, destructive, outline, secondary, ghost, link |
input |
npx shadcn@latest add input |
Text input field |
form |
npx shadcn@latest add form |
React Hook Form integration with validation |
card |
npx shadcn@latest add card |
Container with header, content, footer |
dialog |
npx shadcn@latest add dialog |
Modal overlay |
sheet |
npx shadcn@latest add sheet |
Slide-over panel (top/right/bottom/left) |
select |
npx shadcn@latest add select |
Dropdown select |
toast |
npx shadcn@latest add toast |
Notification toasts |
table |
npx shadcn@latest add table |
Data table |
menubar |
npx shadcn@latest add menubar |
Desktop-style menubar |
chart |
npx shadcn@latest add chart |
Recharts wrapper with theming |
textarea |
npx shadcn@latest add textarea |
Multi-line text input |
checkbox |
npx shadcn@latest add checkbox |
Checkbox input |
label |
npx shadcn@latest add label |
Accessible form label |
# New Next.js project
npx create-next-app@latest my-app --typescript --tailwind --eslint --app
cd my-app
npx shadcn@latest init
# Existing project
npm install tailwindcss-animate class-variance-authority clsx tailwind-merge lucide-react
npx shadcn@latest init
# Install components
npx shadcn@latest add button input form card dialog select toast
// Button with variants and sizes
import { Button } from "@/components/ui/button"
<Button variant="default">Default</Button>
<Button variant="destructive" size="sm">Delete</Button>
<Button variant="outline" disabled>Loading...</Button>
"use client"
import { zodResolver } from "@hookform/resolvers/zod"
import { useForm } from "react-hook-form"
import { z } from "zod"
import { Button } from "@/components/ui/button"
import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from "@/components/ui/form"
import { Input } from "@/components/ui/input"
const formSchema = z.object({
email: z.string().email("Invalid email"),
password: z.string().min(8, "Password must be at least 8 characters"),
})
export function LoginForm() {
const form = useForm<z.infer<typeof formSchema>>({
resolver: zodResolver(formSchema),
defaultValues: { email: "", password: "" },
})
return (
<Form {...form}>
<form onSubmit={form.handleSubmit(console.log)} className="space-y-4">
<FormField name="email" control={form.control} render={({ field }) => (
<FormItem>
<FormLabel>Email</FormLabel>
<FormControl><Input type="email" {...field} /></FormControl>
<FormMessage />
</FormItem>
)} />
<FormField name="password" control={form.control} render={({ field }) => (
<FormItem>
<FormLabel>Password</FormLabel>
<FormControl><Input type="password" {...field} /></FormControl>
<FormMessage />
</FormItem>
)} />
<Button type="submit">Login</Button>
</form>
Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
anthropics/claude-code
mblode/agent-skills
github/awesome-copilot
sickn33/antigravity-awesome-skills
leonxlnx/taste-skill
erichowens/some_claude_skills
We added shadcn-ui from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
Useful defaults in shadcn-ui — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
I recommend shadcn-ui for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
I recommend shadcn-ui for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Solid pick for teams standardizing on skills: shadcn-ui is focused, and the summary matches what you get after install.
Useful defaults in shadcn-ui — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
shadcn-ui reduced setup friction for our internal harness; good balance of opinion and flexibility.
We added shadcn-ui from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
shadcn-ui has been reliable in day-to-day use. Documentation quality is above average for community skills.
Registry listing for shadcn-ui matched our evaluation — installs cleanly and behaves as described in the markdown.
showing 1-10 of 30