@unusual-components/components-ui-react
v0.1.0
Published
Components UI React
Downloads
2
Readme
React Component Library
Oficial NPM package
https://www.npmjs.com/package/@unusual-components/components-ui-react
Install
npm install @unusual-components/components-ui-react
run local
npm i
npm run start
💻 Tecnologias:
- Typescript
- ViteJS
- ReactJS
- styled-components
- Storybook
🔎 Validadores
- ESLint
- StyleLint
- Husky
🚧 Ambiente de teste
Na pasta da lib, execute:
$ npm link
Agora na pasta do projeto destino:
$ npm link [nome-da-lib]
Nesse momento, toda vez que gerarmos uma nova build, os arquivos irão para o projeto destino.
Para parar o ambiente de teste:
na pasta do projeto destino:
npm unlink [nome-da-lib]
🚀 Uso
No HOC do repo destino, coloque
import '[nome-da-lib]/dist/style.css';
Em qualquer lugar abaixo do HOC:
import { Button } from "[nome-da-lib]";
...
<Button>Teste</Button>