This is an example project that integrates daisyUI with the new Next.js 14 App Router. This example uses cookies to load the themes server-side.
Use whichever suits your taste.
- Using Server Actions. (NEW)
- Using Javascript to set cookies client-side. (OLD)
First, install the dependencies:
npm install
Then, run the development server:
npm run dev
Open https://localhost:3000 with your browser to see the result.