daisyUI v5.6 is now available!

React component library

Use daisyUI as a Tailwind CSS component library for React projects

Best React component library

React

React is a popular JavaScript library for building user interfaces, maintained by Meta (formerly Facebook) and a thriving developer community.

React's component model lets you split an interface into small pieces with clear state, props, and rendering rules. That structure works well for product UI because buttons, forms, dialogs, navigation, and data views can live as reusable components instead of one-off markup.

The declarative model is the main point: your component describes what the UI should look like for the current state, and React handles the updates. With frameworks like Next.js, Remix, React Router, and Vite, React also fits many rendering models, from static pages to interactive dashboards.

React + daisyUI

daisyUI works well in React because it gives you styled components without taking over component behavior. You keep React in charge of state, events, forms, routing, and data flow. daisyUI handles the CSS.

That split is useful in real React code:

  • No JavaScript dependency: daisyUI doesn't add React components, hooks, providers, or client-side state to your bundle.

  • Readable JSX: Classes like btn, card, alert, and input keep repeated UI easier to scan than long utility chains.

  • Framework-owned behavior: You decide how a modal opens, how a form validates, or how a menu gets data. daisyUI only styles the markup.

  • Themeable by default: Built-in themes and CSS variables make light mode, dark mode, and brand themes practical without rewriting every component.

For React teams, this means the design layer gets faster while the application architecture stays yours.

Can't state how much I love daisyUI ♥️

rootkid
Software Developer

While I love the flexibility of Tailwind CSS, I always find myself configuring re-usable styles as I hammer out a visual concept. daisyUI made doing that a lot easier today.

Chris Tankersley
PHP Developer, Writer, Speaker, and Teacher

Been using daisyUI for a while and I must say...such a fun addon for Tailwind CSS, well done 🔥

Dev Ed
Content Creator

I've been *enjoying daisyui* since I discovered it very recently, great job!

Vincent Bergeron
Software Developer

I recommend you to use daisyUI on top of Tailwind they work together and gives more possibilities and ease.

Christophe Anfry
Ex Google Workspace technical support

I cannot thank you enough for daisyUI. It has completely taken over my UIs. It is a breeze to get consistent, great looking user interfaces and quickly!

jogi
Developer

Install Tailwind CSS and daisyUI for React

Setting up daisyUI with React follows the same path as any Tailwind CSS 4 project.

Create a React project with Vite or your preferred React toolchain, install Tailwind CSS and daisyUI, then add daisyUI from your CSS file with @plugin "daisyui".

After that, you can use daisyUI component classes directly in JSX and keep custom behavior in React components.

For detailed installation steps, see How to install daisyUI with React.

daisyUI is the most popular
component library for Tailwind CSS

Used by engineers at

Meta Research
Alibaba
Amazon
Adobe
Pepsico
Google Cloud