Kanso UI LogoKanso UI
Components/nextjs
Installation

Install Next.js

Create a new Next.js project using the official create-next-app starter.

1

Create a new Next.js project

Run create-next-app to scaffold a fresh project with TypeScript and Tailwind CSS.

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

Configure TypeScript options

Verify that your tsconfig.json has paths mapped correctly so you can use the @/ prefix.

tsconfig.json
{
  "compilerOptions": {
    "paths": {
      "@/*": ["./*"]
    }
  }
}
3

Verify structural organization

Ensure your project has components/ and lib/ directories configured inside the root or src/ directory.

Command Palette

Search for a command to run...