Back to catalog

shadcn-expert

Expert guidance for using Shadcn/ui components, patterns, and best practices. This skill should be used when building UIs with Shadcn/ui, customizing components, creating design systems.

  • Category: Development
  • Tags: react, design
  • Version: 1.0.0
  • Author: walid
  • Downloads: 7
  • Updated: 2026-09-29

Download the latest version (v1.0.0) from this page.

SKILL.md

---
name: shadcn-expert
description: Expert guidance for using Shadcn/ui components, patterns, and best practices. This skill should be used when building UIs with Shadcn/ui, customizing components, creating design systems, or implementing consistent component patterns. It provides comprehensive knowledge of Shadcn/ui components, Tailwind CSS integration, and React patterns.
---

# Shadcn/ui Expert

Expert guidance for building beautiful, accessible UIs with Shadcn/ui components and patterns.

## Overview

This skill provides comprehensive expertise in Shadcn/ui, including component usage, customization, design system integration, accessibility, and best practices for building modern React applications.

## Quick Start

### Install Shadcn/ui

```bash
npx shadcn-ui@latest init
npx shadcn-ui@latest add button
npx shadcn-ui@latest add card
```

### Component Usage

```tsx
import { Button } from "@/components/ui/button"
import { Card } from "@/components/ui/card"

export function MyComponent() {
  return (
    <Card>
      <Button>Click me</Button>
    </Card>
  )
}
```

## Core Concepts

### What is Shadcn/ui?

**Definition:**
- Copy-paste component library
- Built on Radix UI primitives
- Styled with Tailwind CSS
- Fully customizable
- Accessible by default

**Key Principles:**
- Own your code (copy, not install)
- Customize everything
- Type-safe with TypeScript
- Accessible components
- Modern React patterns

## Component Library

### Form Components

**Button, Input, Select, Checkbox, Radio, Textarea, Form**

### Layout Components

**Card, Sheet, Dialog, Popover, Tabs, Accordion**

### Data Display

**Table, Badge, Avatar, Progress, Skeleton**

### Navigation

**Navigation Menu, Breadcrumb, Pagination**

### Feedback

**Alert, Toast, Progress**

## Integration with Supabase

### Form Integration

```typescript
import { useForm } from 'react-hook-form'
import { Form, FormField } from '@/components/ui/form'

export function ProfileForm() {
  const form = useForm()
  
  const onSubmit = async (data) => {
    const { error } = await supabase
      .from('profiles')
      .update(data)
      .eq('id', userId)
  }
  
  return <Form {...form}>...</Form>
}
```

## Resources

- **Documentation:** https://ui.shadcn.com
- **Components:** https://ui.shadcn.com/docs/components
- **Examples:** https://ui.shadcn.com/examples

export function ProfileForm() {
  const form = useForm()
  
  const onSubmit = async (data) => {
    const { error } = await supabase
      .from('profiles')
      .update(data)
      .eq('id', userId)
  }
  
  return <Form {...form}>...</Form>
}
```

## Resources

- **Documentation:** https://ui.shadcn.com
- **Components:** https://ui.shadcn.com/docs/components
- **Examples:** https://ui.shadcn.com/examples