@revotale/daisyui-react
v0.0.5
Published
@revotale/daisyui-react simplify development with DaisyUI + latest React features
Downloads
4
Readme
daisyUI components built with React, Typescript and TailwindCSS
Components are supporting React Server Components!
@revotale/daisyui-react 🌼
💿 Install
Make sure you've installed TailwindCSS and daisyUI.
Install the package with npm or yarn:
npm install @revotale/daisyui-react
or
pnpm install @revotale/daisyui-react
To prevent TailwindCSS from purging your styles, add the following line to your tailwind.config.js:
module.exports = {
content: [
'node_modules/daisyui/dist/**/*.js',
'node_modules/@revotale/daisyui-react/dist/**/*.js',
],
plugins: [require('daisyui')],
}
⚡ Quick Start
Import @revotale/daisyui-react components within your component files:
import { Button } from '@revotale/daisyui-react'
export default (props) => {
return <Button color="primary">Click me!</Button>
}
License
This project is licensed under the MIT License - see the LICENSE file for details.