Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Click-To-Copy NPM Install Links #6

Open
brigand opened this issue Sep 3, 2014 · 1 comment
Open

Click-To-Copy NPM Install Links #6

brigand opened this issue Sep 3, 2014 · 1 comment

Comments

@brigand
Copy link

brigand commented Sep 3, 2014

You could add a copy button for the npm command using react-zeroclipboard. Not sure exactly what it should say.

var ReactZero = require('react-zeroclipboard');
// ...
var command = "npm install --save " + packageName;
<ReactZero text={command}>
  <button>copy "{command}"</button>
</ReactZero>
@TheLudd
Copy link

TheLudd commented Sep 14, 2014

The copied command would need to be different depending on if it is a production component, dev component or global component. The fact that all components need to be tagged with react-component suggests that they are for production use, but still....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants