0.0.9 • Published 4 years ago
@coveliving/components v0.0.9
Components library
Reusable React components library with TypeScript and TailwindCSS
How to install
Run this command in your repository:
npm install @coveliving/componentsThen, import any component in your application:
import { Button } from "@coveliving/components";Finally, import the styles.css file from @coveliving/components into your project (where you usually import your global .css file, e.g. in your _app.jsx in Next.js project):
import "@coveliving/components/dist/styles.css";How to contribute
This is a React project with TypeScript and TailwindCSS. To create and add a new component into library clone this repo from the GitHub and run:
npm installTo publish updated components:
- run
npm run build- it will purge the .css file through PostCSS plugin and compile .tsx files into .js through TypeSctipt compiler - change the version of library in
package.jsonaccording to semver - run
npm publish