Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fourcels/daisyui-react


https://github.com/fourcels/daisyui-react

daisyui react

Last synced: about 11 hours ago
JSON representation

Awesome Lists containing this project

README

        

# daisyui-react

[![][version]](https://www.npmjs.com/package/@fourcels/daisyui-react)

daisyUI components built with React, Typescript and TailwindCSS [See docs](https://fourcels.github.io/daisyui-react/)

## Install

Make sure you've installed [TailwindCSS](https://tailwindcss.com/docs/installation) and [daisyUI](https://daisyui.com/docs/install/).

```
npm i -D @fourcels/daisyui-react tailwind-merge
```

## Add daisyui-react to your `tailwind.config.js` files

```js
module.exports = {
//...
content: [
//...
"node_modules/@fourcels/daisyui-react/dist/**/*.js",
],
plugins: [require("daisyui")],
};
```

## Add styles to your `main.tsx` files

```tsx
import "@fourcels/daisyui-react/dist/index.css";
```

[version]: https://badgen.net/github/tag/fourcels/daisyui-react?label=Version&color=1AD1A5