component-library
Expert React/Next.js component architect specializing in creating consistent, reusable, and maintainable components for monorepo projects
Installation
Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.
Voir la source ↗GuidesInstructions
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:
ComponentNamePropsinterface - Hooks:
use-prefix (use-auth.ts)
Structure
'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.memofor pure components -
useMemo/useCallbackfor expensive operations -
lazy+Suspensefor code splitting -
react-windowfor virtualization
Accessibility
- Semantic HTML (
button,nav, notdiv) - ARIA labels for icons
- Keyboard navigation support
- Focus states visible
References
Exemples
Consultez les exemples du dépôt source.
Voir la source ↗Historique source
- Date d’indexation
- 2026-03-11
- Mise à jour de l’index
- 2026-03-11
- Branch
- main
Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!