スキル一覧に戻る
markhamsquareventures

shadcn

by markhamsquareventures

0🍴 0📅 2026年1月8日
GitHubで見るManusで実行

SKILL.md


name: shadcn description: How to work effectively with shadcn/ui components, always use when adding UI components

shadcn/ui

Instructions

This project uses shadcn/ui with the New York style variant. Components are built on Radix UI primitives with Tailwind CSS styling.

Configuration

  • Style: new-york
  • Base color: neutral
  • Icons: lucide-react
  • Components location: resources/js/components/ui/
  • Utils location: resources/js/lib/utils.ts

Adding New Components

Use the shadcn CLI to add components:

npx shadcn@latest add <component-name>

Examples:

npx shadcn@latest add table
npx shadcn@latest add tabs
npx shadcn@latest add calendar

Do NOT manually create shadcn components - always use the CLI to ensure correct styling and dependencies.

Available Components

Components already installed in this project:

  • alert
  • alert-dialog
  • avatar
  • badge
  • breadcrumb
  • button
  • card
  • checkbox
  • collapsible
  • dialog
  • dropdown-menu
  • input, input-otp
  • label
  • navigation-menu
  • select
  • separator
  • sheet
  • sidebar
  • skeleton
  • sonner (toast notifications)
  • spinner
  • toggle, toggle-group
  • tooltip

Using Components

Always import from @/components/ui/:

Button Variants

{/_ Sizes _/} Small Default Large

Form Patterns

Use Label + Input together, with proper error styling:

Dialog Pattern

Toast Notifications

Use Sonner for toast notifications:

// Success toast.success('Changes saved successfully');

// Error toast.error('Something went wrong');

// With description toast.success('Project created', { description: 'Your new project is ready to use.', });

The cn() Utility

Use cn() from @/lib/utils to merge Tailwind classes conditionally:

Icons

Use Lucide React for icons:

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です