A lightweight, type-safe React component library boilerplate with TypeScript support.
- 🚀 TypeScript support
- 📦 Built with tsup for optimal bundle size
- 🧪 Jest and React Testing Library for testing
- 📚 Storybook for component documentation
- 🎨 CSS-in-JS support
- 📝 ESLint and TypeScript for code quality
- 🏷️ Type definitions included
npm install# Start Storybook
npm run storybook
# Run tests
npm test
# Build the library
npm run buildimport { Button } from 'react-library-boilerplate';
function App() {
return (
<Button variant="primary" size="large">
Click me
</Button>
);
}src/
├── components/ # React components
├── index.tsx # Main entry point
└── types.ts # Type definitions
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.