Files
shadcn-ui/templates/react-router-app
shadcn d63c7813f2 fix(cli): extend pnpm 11 build-script allowlists across app templates
- Add packages: [] to single-app pnpm-workspace.yaml so pnpm 9 does
  not reject the file with "packages field missing or empty".
- Add astro-app, react-router-app, start-app, next-app workspace
  yamls with the build-script allowlist each template needs
  (esbuild, sharp, unrs-resolver as applicable).
- Set msw: false across all app allowlists so the registry component
  install runs cleanly under pnpm 11 without executing msw's
  service-worker postinstall.
- Add a scaffold test pinning the packages:[] + allowBuilds shape
  so the parser keeps treating it as single-app.
2026-05-21 20:00:42 +04:00
..
2026-02-17 15:21:13 +04:00
2026-02-17 15:21:13 +04:00
2026-02-17 15:21:13 +04:00
fix
2026-02-20 16:40:41 +04:00
2026-02-17 15:21:13 +04:00
2026-02-17 15:21:13 +04:00
2026-02-17 15:21:13 +04:00
2026-02-17 15:21:13 +04:00
2026-02-17 15:21:13 +04:00

React Router + shadcn/ui

This is a template for a new React Router project with React, TypeScript, and shadcn/ui.

Adding components

To add components to your app, run the following command:

npx shadcn@latest add button

This will place the ui components in the components directory.

Using components

To use the components in your app, import them as follows:

import { Button } from "@/components/ui/button";