Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
react-daisyui
Advanced tools
🚧 WORK IN PROGRESS 🚧
A React.js wrapper for daisyUI
🚨 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.
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'
],
// ...
}
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.
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.
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.
yarn release
FAQs
react-daisyui - DaisyUI components built with React 🌼
We found that react-daisyui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.