@tecfancy/react-components
v0.0.6
Published
[](https://sonarcloud.io/summary/new_code?id=TecFancy_react-components) [ => (
<Button size="large" theme="primary">
Click Me
</Button>
);
export default App;Custom Themes
The component library supports theme customization. You can use the provided variables file:
// Import variables
@use 'react-components/dist/es/styles/_variables.scss' as *;
// Customize variables
$primary-color: #1890ff;Development Guide
This quick guide will help you set up the project in your local development environment.
System Requirements
Node.js: >= 20.10.0
After installing Node.js, you'll need to install the yarn package manager:
npm install -g yarnInstall Dependencies
yarn installScript Commands
The project includes several commonly used scripts that can be executed from the project root.
Start Project
yarn startThis command launches the development server. Access the project at http://localhost:6006 in your browser.
Build Project
To build the final component library, run:
yarn buildTo build the documentation site for the component library, run:
yarn build:storybookUnit Testing
yarn testThis command runs unit tests once. You can also start test watch mode:
yarn test:watchCheck Dependency Updates
yarn ncuThis command checks for new versions of third-party dependencies. Update dependencies with:
yarn ncu -uThis updates dependencies in package.json to their latest versions. Before updating, ensure major version updates won't break the project.
After updating dependencies, run yarn install to install the latest versions.
Tech Stack
- React
- TypeScript
- SCSS
- Rollup
- Storybook
- Jest
Happy coding ;-)
