0.0.4 • Published 1 year ago

@kyros-digital/react-component-library v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-component-library

Kyros Digital's React Component Library is a library of components that we use on a regular basis to help ui speed development. These components use Tailwind like much of the rest of our development, but these components are opinionated - they are not intended to be used every time, but utilizing, for example, the library Button may cover 80% of use cases for a button with out needing to retype or copy and paste. These components offer some amount of flexibility in customization, but it is recommended that a component needs to truly reflect a look or functionality that is different from the library component to start from scratch.

Add a component

  1. Do not use Tailwind UI - per the license agreement - https://tailwindui.com/license
  2. Create the component
  3. Include passing unit (and integration) tests for the component
  4. Add build and type files to whitelist in package.json

Setup in new project

  1. run yarn add @kyros-digital/react-component-library
  2. run yarn add tailwindcss and tailwind init
  3. add "./node_modules/@kyros-digital/react-component-library/**/*.js" to tailwind.config.js
const { themeExtensions } = require('@kyros-digital/react-component-library/dist/theme/config')
module.exports = {
  content: [
    ...
    "./node_modules/@kyros-digital/react-component-library/**/*.js",
    ...
  ],
  1. import the components as needed to your project.