shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
70.49k stars 4.23k forks source link

[bug]: Copy button does not open package manager choice #4974

Open imMatheus opened 2 days ago

imMatheus commented 2 days ago

Describe the bug

All "copy this command" sections throughout the docs have a menu that prompts you if you would like to copy this command with npm, yarn, pnpm, or bun. But I found one place in the "getting started with Vite" docs where it does not. At step 5 in the guide where it tells you to copy-paste the dev dependency for @types/node, it does not ask for a package manager but just copy-pastes the npm version.

Link to page: https://ui.shadcn.com/docs/installation/vite

Affected component/components

No compoent

How to reproduce

  1. Go to https://ui.shadcn.com/docs/installation/vite
  2. Go to step 5
  3. Click the copy button for the npm i -D @types/node command

Codesandbox/StackBlitz link

No response

Logs

No response

System Info

Google chrome on a mac

Before submitting

imMatheus commented 2 days ago

If this is deemed an issue, i could make a PR for a fix 🙏

aditya74841 commented 1 day ago

But i think this is not an issue