npm.io
0.0.9 • Published 4 years ago

@coveliving/components

Licence
ISC
Version
0.0.9
Deps
0
Size
3.9 MB
Vulns
0
Weekly
0

Components library

Reusable React components library with TypeScript and TailwindCSS

How to install

Run this command in your repository:

npm install @coveliving/components

Then, 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 install

To 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.json according to semver
  • run npm publish