@wooy/react-components
TypeScript icon, indicating that this package has built-in type declarations

1.0.14 • Public • Published

Wooy React Tailwind UI Components

React UI components using tailwindcss

Components:

Component Groups

Top level components

Installation:

yarn add @wooy/react-components

Usage

Required:

// tailwind.config.js
const wooyTheme = require("@wooy/react-components");
module.exports = wooyTheme({
  purge: [],
  theme: {
    extend: {},
  },
  variants: {},
  plugins: [],
});
// _app.jsx
import "@wooy/react-components/dist/index.css";

Now you can use any components you want:

import React from "react";
import { Button } from "@wooy/react-components";

<Button type="submit">Submit</Button>;

// -------------------

import React from "react";
import Link from "next/link";
import { ButtonLink } from "@wooy/react-components";

<ButtonLink Link={Link} href={href} as={as}>View</Button>

Local development (yalc)

In react-components: yalc publish

In the app you're importing react-components: yalc add @wooy/react-components

Local development (yarn)

TODO: Make this better...

In react-components: yarn link

In the app you're importing react-components: yarn link-components

In react-components: yarn link-local yarn start

In the app you're importing react-components: yarn dev

And your app will hot reload when changes are detected in the components folder!

Testing

  • yarn test will run jest

TODO:

  • integrate prettier/husky with our default prettier config
  • copy unit tests over and get them running in this lib

Package Sidebar

Install

npm i @wooy/react-components

Weekly Downloads

1

Version

1.0.14

License

MIT

Unpacked Size

6.08 MB

Total Files

408

Last publish

Collaborators

  • rjchirinos
  • alejolovallo
  • hperezrodal
  • nicomendiatd
  • jm.aragonpaz
  • lucas-marc
  • lizanlycan
  • mariano-aguero
  • pmprete
  • djaciel
  • awolfsdorf
  • wooy_developer