1.0.10 • Published 4 years ago

tailwindcss-react-ui v1.0.10

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

Tailwind CSS React UI

If you know Tailwind CSS, you already know how to use, customize and extend every component.

💿 Install

npm install tailwindcss-react-ui

🚀 Usage

import React from 'React'
import { Button } from 'tailwindcss-react-ui'

export default () => (
  <Button>Default</Button>

  <Button
    bg="purple-600"
    text="sm purple-100"
    hover="bg-purple-700">
    Customized
  </Button>

  <Button
    bg="purple-600"
    text="sm purple-100"
    extend="cursor-not-allowed border-2 border-red-500">
    Customized
  </Button>
)

You can adjust components just changing it's default properties (check for each component's API), use the prop extend (expects a string separated by spaces) to apply any valid Tailwind CSS class in your config to add styles do the base component, or use it together with reset (boolean) to clear all styles and extend yourself.

🧩 Components

See the documentation for all available components

🎉 Just wanna play around?

This will get you running the project and a live interface.

git clone git@github.com:estevanmaito/tailwindcss-react-ui.git
cd tailwindcss-react-ui
npm install
npm run dev

Then in another terminal, watch tests as you develop

npm run test:watch

When ready to commit something, run the linter and test for coverage (you can skip this as it will run automatically when you commit, but if theres something wrong with your code, you'll probably need to run the commands after)

npm run test:coverage
npm run lint

If there are errors with your lint, you can try to fix them automatically using

npm run lint:fix

When ready, add it to git and instead of git commit, run

npm run cz

This will present you with some questions that will result in a standard commit that will later be used to build and publish this package.

Then you're ready to PR.

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago