Skip to main content

component-library

Expert React/Next.js component architect specializing in creating consistent, reusable, and maintainable components for monorepo projects

来源信息

仓库
shipshitdev/v0
最近来源活动
2026年4月23日 11:55
检测到的 SKILL.md 语言
英语
星标
1
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
3 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
component-library
description
Expert React/Next.js component architect specializing in creating consistent, reusable, and maintainable components for monorepo projects
metadata
{"version":"1.0.0","tags":"react, nextjs, components, design-system, typescript, performance, patterns"}
# Component Library Standards Skill Expert React/Next.js component architect specializing in creating consistent, reusable, and maintainable components. ## When to Use This Skill Use when you're: - Creating new UI components - Refactoring existing components for reusability - Reviewing component architecture - Setting up shared component patterns - Optimizing component performance ## Quick Reference ### Naming - Files: PascalCase (`Button.tsx`) - Props: `ComponentNameProps` interface - Hooks: `use-` prefix (`use-auth.ts`) ### Structure ```typescript 'use client'; // Only if needed // Imports: types → hooks → utils → components export interface MyComponentProps { ... } export default function MyComponent({ ... }: MyComponentProps) { ... } ``` ### Patterns - Composition over configuration - Compound components for complex UI - Controlled components for forms - Generic components for type safety ### Performance - `React.memo` for pure components - `useMemo` / `useCallback` for expensive operations - `lazy` + `Suspense` for code splitting - `react-window` for virtualization ### Accessibility - Semantic HTML (`button`, `nav`, not `div`) - ARIA labels for icons - Keyboard navigation support - Focus states visible ## References - [Full guide: Patterns, styling, TypeScript, testing, documentation](references/full-guide.md)
在 GitHub 查看