react-clipboard-icon
is an svg icon from clipboard.js site assets, packaged as a React stateless component
Installation | Usage | Development | License
All credits go to @zenorocha.
Installation
React is required as a peer dependency. With npm do
npm install reactnpm install react-clipboard-icon
Usage
All props are optional:
onClick
{Function} : see this CodePen for an example of Clipboard.js + React.size
{Number} defaults to24
.style
{Object}.title
{String} text visible on mouseover.
const style = fill: 'red' const MyComponent = <div> <ClipboardIcon size=40 style=style /> </div>
Development
Transpile with npm run build
.
Lint code with npm run lint
.
Deploy with npm version major|minor|patch
.