using-shadcn-ui
БесплатноБез исполняемых скриптовНе проверенUse when building React UI components, implementing design systems, or needing pre-built accessible components - leverages shadcn/ui primitives and…
от nilecui★ 29 звёзд на GitHubОб этом скилле
Using shadcn/ui
Overview
shadcn/ui is a collection of re-usable, accessible React components built on Radix UI and Tailwind CSS. Unlike traditional component libraries, shadcn/ui copies components directly into your project, giving you full ownership and customization control.
Core principle: Components live in your codebase. You own the code. No package.json dependency.
When to Use
Use shadcn/ui when:
- Building React applications with Tailwind CSS
- Need accessible, customizable UI components
- Want pre-built patterns without library lock-in
- Implementing common UI patterns (forms, dialogs, dropdowns, etc.)
- Starting new projects that need design system foundation
- Need production-ready blocks for hero sections, pricing, testimonials, etc.
shadcnblocks.com integration:
- 829 blocks across 42 categories
- Production-ready sections (Hero, Navbar, Footer, Pricing, Testimonials, etc.)
- Copy-paste directly into your project
- Built with same shadcn/ui primitives
Don't use for:
- Non-React projects
- Projects without Tailwind CSS
- When you need a locked, versioned component library
- Simple HTML/CSS projects
Installation Workflow
1. Initialize shadcn/ui
npx shadcn@latest init
Configuration prompts:
- Style: Default or New York
- Color: Slate, Gray, Zinc, etc.
- CSS variables: Yes (recommended)
- Tailwind config: Use CSS variables for colors
2. Add Components
# Add specific components
npx shadcn@latest add button
npx shadcn@latest add dialog
npx shadcn@latest add form
# Add multiple at once
npx shadcn@latest add button card dialog dropdown-menu
Components install to: components/ui/
3. Using shadcnblocks.com
Visit: https://www.shadcnblocks.com/blocks
Workflow:
- Browse category (Hero, Pricing, Testimonial, etc.)
- Find desired block
- Click "Copy Code"
- Paste into your component file
- Install any missing shadcn/ui dependencies
- Customize colors, text, and layout
Component Categories Reference
| Category | Common Use Cases | Example Components |
|---|---|---|
| Forms | User input, validation | Input, Textarea, Select, Checkbox, Radio Group |
| Overlays | Modals, popovers | Dialog, Popover, Tooltip, Sheet |
| Navigation | Menus, dropdowns | Dropdown Menu, Navigation Menu, Tabs |
| Feedback | User notifications | Alert, Toast, Progress, Skeleton |
| Data Display | Tables, cards, badges | Table, Card, Badge, Avatar |
| Layout | Containers, separators | Separator, Aspect Ratio, Scroll Area |
shadcnblocks.com Categories (829 blocks)
Layout & Navigation (200 blocks)
- Hero (162 blocks): Landing page headers with CTAs
- Navbar (13 blocks): Navigation headers
- Footer (18 blocks): Page footers
- Banner (7 blocks): Announcement bars
Content Sections (367 blocks)
- Feature (266 blocks): Product feature showcases
- Blog (22 blocks): Blog layouts and cards
- Gallery (47 blocks): Image galleries
- Timeline (14 blocks): Event timelines
- Team (10 blocks): Team member profiles
- About (10 blocks): About us sections
Business Components (116 blocks)
- Pricing (35 blocks): Pricing tables and cards
- Testimonial (28 blocks): Customer testimonials
- Case Studies (9 blocks): Success stories
- Integration (16 blocks): Integration showcases
- Service/Services (21 blocks): Service offerings
- Stats (17 blocks): Statistics displays
User Engagement (64 blocks)
- CTA (25 blocks): Call-to-action sections
- Contact (13 blocks): Contact forms
- Signup/Login (17 blocks): Authentication forms
- Waitlist (2 blocks): Email capture
- Community (7 blocks): Community features
Information Display (82 blocks)
- FAQ (15 blocks): Frequently asked questions
- Comparison (10 blocks): Feature comparisons
- Logos (11 blocks): Logo grids
- Resources (4 blocks): Resource libraries
- Download (12 blocks): Download sections
- Changelog (7 blocks): Update logs
- Careers (9 blocks): Job listings
- Compliance (3 blocks): Legal/privacy sections
Quick Start Example
// 1. Add button component
// $ npx shadcn@latest add button
// 2. Import and use
import { Button } from "@/components/ui/button"
export function MyComponent() {
return (
<div>
<Button variant="default">Click me</Button>
<Button variant="destructive">Delete</Button>
<Button variant="outline">Cancel</Button>
<Button variant="ghost">Subtle</Button>
</div>
)
}
Form Pattern with shadcn/ui
// Install: npx shadcn@latest add form input button
import { useForm } from "react-hook-form"
import { zodResolver } from "@hookform/resolvers/zod"
import * as z from "zod"
import { Button } from "@/components/ui/button"
import {
Form,
FormControl,
FormField,
FormItem,
FormLabel,
FormMessage,
} from "@/components/ui
Установить using-shadcn-ui в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл using-shadcn-ui?
Use when building React UI components, implementing design systems, or needing pre-built accessible components - leverages shadcn/ui primitives and shadcnblocks.com (829 production-ready blocks) for rapid interface development
Как установить скилл using-shadcn-ui?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл using-shadcn-ui запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic