TWIN UI Component React
This package contains the react UI components.
Installation
npm install @twin.org/ui-components-react
Testing
This package uses Vitest for testing. The following test commands are available:
# Run tests
npm test
# Run tests with UI interface
npm run test:ui
# Run tests with coverage report
npm run test:coverage
Documentation
- TypeScript React Best Practices - Guidelines for TypeScript React component development
- Tree-Shaking Best Practices - Optimize your bundle size with proper import strategies
- Component Template Example - Complete example of a component following best practices
- Centralized Constants Guide - Guide to using the centralized constants for improved maintainability and tree-shaking
- Examples - Usage examples of the components
- Changelog - Changes between each version