docs: instruction about adding packages in ui-component library (#48750)

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
This commit is contained in:
Muhammed Mustafa
2022-12-14 16:01:19 +02:00
committed by GitHub
parent 66e86d9441
commit cbf1b09f23
@@ -92,6 +92,14 @@ To run tests against the component library, run the following command from the r
npm run test-ui-components
```
## Adding packages to the UI-Component library
We restrict adding new packages to the UI Components to help with the project's maintainability. In the rare chance that you think a dependency is needed, please check with the maintainers first and then use the following command to add a package:
```bash
npm i -w=tools/ui-components package_name
```
### Useful links
- [Testing for Accessibility](https://testing-library.com/docs/dom-testing-library/api-accessibility)