shadcn-ui/ui

[docs]: The copy button on installation code block shows a dropdown

karimkod opened this issue · 0 comments

Feature description

In the current docs, the installation code blocks contain a clipboard icon, when clicked it shows a dropdown to choose the package manager used.
I think for UX purposes, we can either have a different icon (a chevron down), or have a separate dropdown to choose which package is needed and the copy button will just copy.

Affected component/components

No response

Additional Context

This has made me go back to the docs page to re-do the copy from the dropdown, since the clipboard icon is deceptive.

I think this is coming from : https://github.com/shadcn-ui/ui/blob/main/apps/www/components/copy-button.tsx

Open for discussion and ready to PR if there is agreement!

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues and PRs