A Next.js project with Shadcn UI and Croct integration.

Introduction

This template sets up a project using Next.js, Tailwind CSS, Shadcn UI, and Croct. It either initializes a Next.js project with Shadcn UI or adds Shadcn UI to an existing project if one is found.

Usage

To create a new project using this template, run:

npx croct@latest use croct://starter/shadcn-ui

To specify a Next.js version, use the version option:

npx croct@latest use croct://starter/shadcn-ui --version=14

Options

The following options are available for this template:

OptionDescriptionRequiredDefault
nameThe name of the project.Nomy-app
versionThe Next.js version to use.Nolatest
eslintWhether to use ESLint.Notrue
turbopackWhether to use Turbopack.Nofalse
src-dirWhether to use a src directory.Nofalse
import-aliasThe import alias to use.No@/*
routerThe router to use (app or page).Noapp
disableLauncherWhether to disable the project launcher.Nofalse
defaultHomepageWhether to use the default homepage over Croct's.Nofalse

Start building in seconds

Paste the following command in your terminal and let the CLI do the rest.

npx croct@latest init