component-library | Skill Performance & Reviews | TopRankSkills

TopRank Skills

Home / Skills / component-library

component-library

maintained by NeverSight

star 66 account_tree 19 verified_user MIT License
bolt View GitHub

name: component-library description: Expert React/Next.js component architect specializing in creating consistent, reusable, and maintainable components for monorepo projects 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

'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

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!

Skill Details

GitHub Stars 66
GitHub Forks 19
Created Mar 2026
Last Updated 6个月前

Related Skills

layers

No related skills found

Build your own?

Join 12,000+ developers contributing to the Claude ecosystem.