This is a template for creating applications using Next.js 14 (pages directory) and NextUI (v2).
Note: Since Next.js 14, the pages router is recommend migrating to the new App Router to leverage React's latest features
Read more: Pages Router
To create a new project based on this template using create-next-app
, run the following command:
npx create-next-app -e https://github.com/nextui-org/next-pages-template
You can use one of them npm
, yarn
, pnpm
, bun
, Example using npm
:
npm install
npm run dev
If you are using pnpm
, you need to add the following code to your .npmrc
file:
public-hoist-pattern[]=*@nextui-org/*
After modifying the .npmrc
file, you need to run pnpm install
again to ensure that the dependencies are installed correctly.
Licensed under the MIT license.