daisyUI v5.6 is now available!

Next.js component library

Use daisyUI as a Tailwind CSS component library for Next.js projects

Best Next.js component library

Next.js

Next.js is a React framework created by Vercel for building full-stack web applications.

Its App Router gives you file-based routing, layouts, nested routes, loading states, and error boundaries as part of the project structure. Next.js also supports API routes, middleware, image optimization, and production-focused build tooling.

The main advantage is rendering flexibility. A Next.js app can use Server Components, Client Components, static rendering, dynamic rendering, streaming, and server actions where each feature makes sense.

Next.js + daisyUI

daisyUI fits Next.js because it doesn't require a client-side component runtime. It gives you CSS classes for common UI parts while Next.js handles routing, rendering, data loading, and interactivity.

That makes the pairing practical:

  • Server Component friendly: daisyUI classes render as plain HTML and CSS, so static and server-rendered UI doesn't need extra client JavaScript.

  • Client behavior stays explicit: Use Client Components only where you need state, effects, or browser APIs. daisyUI won't force that boundary.

  • Cleaner page markup: btn, navbar, menu, card, and modal make layout and component intent easier to read in page.tsx and shared components.

  • Simple theming: Theme switching can live in cookies, headers, local storage, or app state while daisyUI reads the theme from the DOM.

You get a component vocabulary without giving up the rendering model that makes Next.js useful.

daisyUI makes working with UI components *so easy*

Jason
Indie Game Dev

I use daisyUI for every site now!

TikitaTech
Indie hacker

With daisyUI I haven't written a single line of css, yet my div classes are pretty clean

Bogdan Chayka
Founder

daisyUI is awesome!

borislav grigorov
Indiehacker

daisyUI is a great project! Grabbed the file tree component, it works great and *doesn't even use JS* - it's just using summary and details elements, very neat!

Lachlan Miller
Vue.js team

I like to use Tailwind+daisyUI to have a Bootstrap like experience.

Tiago Bastos
Software developer

Install Tailwind CSS and daisyUI for Next.js

Getting started with daisyUI in Next.js follows the current Tailwind CSS setup.

Create a project with create-next-app, install daisyUI with Tailwind CSS, and add @plugin "daisyui" in your global CSS file after @import "tailwindcss".

Then use daisyUI classes in Server Components, Client Components, layouts, and pages like any other CSS class.

For step-by-step installation instructions, see How to install daisyUI with Next.js.

daisyUI is the most popular
component library for Tailwind CSS

Used by engineers at

Meta Research
Alibaba
Amazon
Adobe
Pepsico
Google Cloud