1.0.7 • Published 6 days ago

collab-test-cmp v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
6 days ago

Documentation

Documentation for collab-react-common-components is not yet finished.

Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

Setup Tailwind CSS

Install Tailwind CSS:

npm i autoprefixer postcss tailwindcss
npx tailwindcss init -p

Add Tailwind CSS to a CSS file:

@tailwind base;
@tailwind components;
@tailwind utilities;

Install collab-react-common-components React

  1. Run the following command to install collab-react-common-components:
npm i collab-react-common-components
  1. Add tailwind.config.js file:
module.exports = {
  content: [
    "./src/**/*.{js,jsx,ts,tsx}",
    "node_modules/collab-react-common-components/dist/**/*.js",
  ],
  theme: {
    extend: {},
  },
  plugins: ["collab-react-common-components"],
};

### Try it out

How you use collab-react-common-components React depends on your project setup. In general, you can just import the components you want to use from `collab-react-common-components` and use them in a React `.jsx` file:

```jsx
import {Button} from "collab-react-common-components";

export default function MyPage() {
  return (
    <div>
      <Button text="Click me" />
    </div>
  );
}