Next.js Discord

Discord Forum

Setup shadcn as a ui package with turborepo

Unanswered
Somali posted this in #help-forum
Open in Discord
Avatar
SomaliOP
Hi! I have a project that i bootstrapped using npx create-turbo@latest

I have this folder structure:
apps/web
apps/docs
packages/ui

I want to install shadcn into packages/ui as a shared ui library across my apps.

How would I go about setting this up? Any hints would be helpful. Thanks!

4 Replies

Avatar
Somali
Go to the packages/ui folder and install ShadCN along with any required dependencies.

cd packages/ui npm install shadcn
Avatar
SomaliOP
thanks i figured it out
this is the article that helped me