Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
/ daisyui-react Public archive

daisyUI components built with React + server components support.

License

Notifications You must be signed in to change notification settings

RevoTale/daisyui-react

Repository files navigation

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.