What problem does it solve?
This Skill provides a comprehensive set of best practices and patterns for building headless, unstyled React component libraries, ensuring accessibility, maintainability, and a consistent developer experience.
Core Features & Use Cases
- Component Patterns: Learn essential patterns like
forwardRef, render props, context management, and controlled/uncontrolled state.
- Naming Conventions: Establish clear and consistent naming for components, files, and types.
- Organization: Implement scalable directory structures and export strategies for compound components.
- Error Handling: Adopt robust error handling and warning mechanisms for better debugging.
- Use Case: When developing a new UI component library that needs to be highly customizable and accessible, use this Skill to guide the architecture and implementation.
Quick Start
Apply the mui-base skill to refactor the existing React component to follow headless UI best practices.