diff --git a/apps/v4/app/(create)/components/project-form.tsx b/apps/v4/app/(create)/components/project-form.tsx index 3ca5c1ce94..f02ef6e9bd 100644 --- a/apps/v4/app/(create)/components/project-form.tsx +++ b/apps/v4/app/(create)/components/project-form.tsx @@ -57,6 +57,11 @@ const TEMPLATES = [ title: "TanStack Start", logo: 'TanStack', }, + { + value: "react-router", + title: "React Router", + logo: '', + }, { value: "vite", title: "Vite", @@ -170,10 +175,11 @@ export function ProjectForm() { | "next" | "next-monorepo" | "start" + | "react-router" | "vite", }) }} - className="grid grid-cols-2 gap-2" + className="grid grid-cols-3 gap-2" > {TEMPLATES.map((template) => ( diff --git a/apps/v4/app/(create)/lib/search-params.ts b/apps/v4/app/(create)/lib/search-params.ts index ab00904568..ad0d7ba204 100644 --- a/apps/v4/app/(create)/lib/search-params.ts +++ b/apps/v4/app/(create)/lib/search-params.ts @@ -65,6 +65,7 @@ const designSystemSearchParams = { "next", "next-monorepo", "start", + "react-router", "vite", ] as const).withDefault("next"), rtl: parseAsBoolean.withDefault(false), diff --git a/apps/v4/registry/config.ts b/apps/v4/registry/config.ts index bfe1e20b6e..95c2e1cc42 100644 --- a/apps/v4/registry/config.ts +++ b/apps/v4/registry/config.ts @@ -95,7 +95,7 @@ export const designSystemConfigSchema = z .enum(RADII.map((r) => r.name) as [RadiusValue, ...RadiusValue[]]) .default("default"), template: z - .enum(["next", "next-monorepo", "start", "vite"]) + .enum(["next", "next-monorepo", "start", "react-router", "vite"]) .default("next") .optional(), }) diff --git a/packages/shadcn/src/commands/init.ts b/packages/shadcn/src/commands/init.ts index 641c4f10c0..b261cb0fe5 100644 --- a/packages/shadcn/src/commands/init.ts +++ b/packages/shadcn/src/commands/init.ts @@ -71,7 +71,7 @@ export const init = new Command() .argument("[components...]", "names, url or local path to component") .option( "-t, --template