# react-tailwindcss-ts

> React tailwindcss components

Latest version **0.2.2** (published 2023-05-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-tailwindcss-ts
pnpm add react-tailwindcss-ts
yarn add react-tailwindcss-ts
bun add react-tailwindcss-ts
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2023-05-22 |
| First published | 2023-05-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 36.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Fulaji Thakor |
| Maintainers | fvthakor |
| Keywords | react, typescript, tailwindcss, react tailwindcss, tailwindcss react, tailwindcss react typescript |

## Links

- npm: https://www.npmjs.com/package/react-tailwindcss-ts
- Repository: https://github.com/fvthakor/react-tailwind
- Homepage: https://github.com/fvthakor/react-tailwind#readme
- Issues: https://github.com/fvthakor/react-tailwind/issues
- npm.io page: https://npm.io/package/react-tailwindcss-ts

## Dependencies (1)

- [autoprefixer](https://npm.io/package/autoprefixer.md) ^10.4.14

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.2.2 (latest) — 2023-05-22
- 0.2.1 — 2023-05-19
- 0.2.0 — 2023-05-19
- 0.1.0 — 2023-05-19

## README

# React Tailwindcss Components Typescript

## Introduction
    Learn how to include easily React tailwindcss in your project.

## Installation
    npm install react-tailwindcss-ts


## Importing Components
    import { RTButton } from "react-tailwindcss-ts";

# Components 
##  Button Example
     
        import { RTButton } from "react-tailwindcss-ts";

        function TypesExample() {
            return (
                <>
                    <RTButton name="Submit" type={'submit'} />
                </>
            );
        }

        export default TypesExample;
    
## Button API

| Name                                        | Type                    | Default                             | Description                                                                                                       |
| ------------------------------------------- |:-----------------------:| :----------------------------------:| :-----------------------------------------------------------------------------------------------------------------|
| name<sup style="color:red;">*Required</sup> | string                  |                                     |  Name of button                                                                                                   |
| className                                   | string                  | `bg-indigo-700 hover:bg-indigo-900` |  Tailwindcss class for button color, <br />Example:`bg-red-700 hover:bg-red-900`,`bg-green-700 hover:bg-green-900`|
| type                                        | button | submit | reset | button                              |  Type of button,Example: button, submit, reset                                                                    |
| buttonType                                  | sm | md | lg            | md                                  |  Size of button, Example: sm,md,lg                                                                                |
| onClick                                     | function                |                                     | Callback fired when a button is pressed                                                                           |
| processing                                  | boolean                 | false                               | For Proccess is running or not                                                                                    |


## Input Example
     
        import { RTInput } from "react-tailwindcss-ts";

        function TypesExample() {
            return (
                <>
                    <RTInput name="input" label="Password" type={'text'}  placeholder="Password"/>
                </>
            );
        }

        export default TypesExample;

## Input API

| Name                                        | Type                                                | Default   | Description                             |
| ------------------------------------------- |:---------------------------------------------------:| :--------:| :---------------------------------------|
| name<sup style='color:red;'>*Required</sup> | string                                              |           |  Name of input field                    |
| className                                   | string                                              |           |  For Extra Tailwindcss class            |
| label                                       | string                                              |           |  Lable of Input                         |
| type                                        | text | password | email | date | datetime | number  | text      |  Type of input                          |
| placeholder                                 | string                                              |           |  Placeholder of Input                   |
| onChange                                    | function                                            |           |  Callback fired when a input is changed |
| id                                          | string                                              |           |  Id of Input                            |
| formik                                      | boolean                                             | false     |  it's use for `Formik` validation field |


# Other Components Comming Soon

---
_Source: https://npm.io/package/react-tailwindcss-ts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
