antfu-collective / icones

⚡️ Icon Explorer with Instant searching, powered by Iconify
https://icones.js.org
MIT License
4.93k stars 238 forks source link

show the pnpm, npm and yarn install commands for an icon set #183

Open KraXen72 opened 10 months ago

KraXen72 commented 10 months ago

Clear and concise description of the problem

Currently, i have to hover/visit the npm site to get the install command (to use with unocss)

Suggested solution

show the intallation command under/next to icon collection name, like this:

pnpm | yarn | npm
---
pnpm add @iconify-json/logos -D

image

also, please include a copy command button for convenience. thanks.

Alternative

show the id of the icon pack. user can type the rest of the command. Yes, the id is in url but it's ambiguous

Additional context

developer experience

Validations

antfu commented 10 months ago

Sure, PR welcome