# react-tailwind-library

> React UI Components using TailwindCSS

Latest version **0.6.8** (published 2022-12-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-tailwind-library
pnpm add react-tailwind-library
yarn add react-tailwind-library
bun add react-tailwind-library
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.8 |
| Published | 2022-12-12 |
| First published | 2022-11-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 20.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | dipakbhise420@gmail.com |
| Maintainers | dipakbhise |
| Keywords | combobox, form, input, multiselect, react, react-component, react-tailwind, select, tailwind, tailwindcss, ui, react, tailwind, components, ui |

## Links

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

## Dependencies (1)

- [core-js](https://npm.io/package/core-js.md) ^3.26.1

## 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.6.8 (latest) — 2022-12-12
- 0.6.7 — 2022-12-12
- 0.6.6 — 2022-12-12
- 0.6.5 — 2022-12-10
- 0.6.4 — 2022-12-10
- 0.6.3 — 2022-12-10
- 0.6.2 — 2022-12-10
- 0.5.29 — 2022-12-10
- 0.5.28 — 2022-12-10
- 0.5.27 — 2022-12-10
- 0.5.26 — 2022-12-09
- 0.5.25 — 2022-12-09
- 0.5.24 — 2022-12-09
- 0.5.23 — 2022-12-09
- 0.5.22 — 2022-12-09
- … 26 more at https://npm.io/package/react-tailwind-library/versions

## README

# react-tailwind-library

## Setup Tailwind CSS
Using official Tailwind Docs
https://tailwindcss.com/docs/installation

## Install
Using npm:

```shell
npm install react-tailwind-library
```

or using yarn:

```shell
yarn add react-tailwind-library
```

## Add CSS in your Root Directory 

```css
import '../node_modules/react-tailwind-library/dist/style.css';
```

 > In ReactJs import above css in `index.js` file : <br/>
 
 > In NextJs import above css in `_app.js` file :


## Usage
> We can use it in React and Next JS projects

```js
import React, { useState } from "react";
import { Combobox } from "react-tailwind-library";

// const data = ["hi", "hello", "hey", "hi", "hello", "hey"];
const data = [
  { name: "test1" },
  { name: "est1" },
  { name: "wert" },
  { name: "trey" },
  { name: "hgi" },
];
let inputProps = {
  onInput: () => {
    console.log("on input");
  },
};
function App() {
  const [value, setvalue] = useState([{ name: "test1" }]);
  return (
    <div className="App">
      <Combobox
        options={data}
        title={"combobox"}
        value={value}
        setvalue={setvalue}
        inputProps={inputProps}
        multiselect={true}
        textField={"name"}
      />
    </div>
  );
}

export default App;

// if multiselect `true` pass value as an array.
```

## Props

Common props you may want to specify include:

- `inputProps` - Object containing on input events, attributes etc.`(Object)`
- `multiselect` - allow the user to select multiple values.`(Boolean)`
- `options` - specify the options the user can select from.`(Array)`
- `title` - label for the combobox.`(String)`
- `textField` - if options are array of objects then the `key` for options and value to display.`(String)`
- `value` - control the current value.`(String/Object)`
- `setvalue` - Function to set selcted value.`(Function)`

- `More Features and Props wil be published on next version`

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