Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-daisyui

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-daisyui

🚧 WORK IN PROGRESS 🚧

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-daisyui

🚧 WORK IN PROGRESS 🚧

A React.js wrapper for daisyUI

Storybook

Help wanted

🚨 I am looking for contributors to this project, as I do not have time to build all the components and handle the community on my own. 🚨

I am somewhat new to deploying npm packages and very new to storybook and plop, I would expecially appreciate any contributions in this area.

Installing

First install tailwindcss

Then install and configure daisyUI

Install this package:

yarn add react-daisyui -D or npm add react-daisyui -D

Finally (and most importantly), add this package to your content/purge array in your tailwind.config.js. This library WILL NOT WORK properly without doing this.

Example:

module.exports = {
  content: [
    './pages/**/*.{html,js}',
    './components/**/*.{html,js}',
    './node_modules/react-daisyui/dist/*.js'
  ],
  // ...
}

Usage

 import {Button} from 'react-daisyui'

 ...

 export const YourComponent = () => {
     return (
         <Button variant="success">Click me!</Button>
     )
 }

Documentation and list of components is available in the Storybook.

Contributing

Configuring dev environment

First, clone this repo.

Then run yarn to install all of the dependencies:

yarn

Now you can launch the storybook dev server by running:

yarn storybook

Your browser will automatically open to Storybook.

Creating new components

Run yarn generate component ${your_new_component_name}.

The generator will ask a few questions and generate the component for you.

Ensure you export the component, at the right levels, or it will not be available to dependent packages.

Create a new release

yarn release

FAQs

Package last updated on 03 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc