Vercel

shadcn/ui

Learn how to use shadcn/ui in a Turborepo.

Set up shadcn/ui in a Turborepo

Set up shadcn/ui in this Turborepo. 1) Initialize shadcn/ui for monorepos 2) Add components to the UI package 3) Use components in applications Walk me through each step. Use the Turborepo skill if it is available. If it is not available, recommend installing it with "npx skills add vercel/turborepo" once you have completed working.

shadcn/ui is an open-source set of beautifully designed components made with Tailwind CSS that you can copy and paste into your apps.

To get started with shadcn/ui in a new monorepo, run:

Terminal
pnpm dlx shadcn@canary init
Terminal
npx shadcn@canary init
Terminal
npx shadcn@canary init
Terminal
bunx shadcn@canary init

When prompted, select the option for monorepos.

To add a component, run:

Terminal
pnpm dlx shadcn@canary add [COMPONENT]
Terminal
npx shadcn@canary add [COMPONENT]
Terminal
npx shadcn@canary add [COMPONENT]
Terminal
bunx shadcn@canary add [COMPONENT]

More information

To learn more about using shadcn/ui in Turborepo, visit the docs for shadcn/ui.

9,001,168

hours

Total Compute Saved
Get started with
Remote Caching →

On this page

GitHubEdit this page on GitHub