Docs
Next.js

Next.js

Install and configure Next.js project.

Create project

Start by creating a new Next.js project using create-next-app:

npx create-next-app@latest my-app --typescript --tailwind --eslint

That's it

You can now start adding components to your project.

  • Add UI components in the components/ui folder.
import { Button } from "@/components/ui/button";
 
export default function Home() {
  return (
    <div>
      <Button>Click me</Button>
    </div>
  );
}

Done 🎉✅

Still facing any deficulty

Refer the original documentation Next.js .