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.

clippy

Installation

React and prop-types are required as peer dependencies. With npm do

npm install react prop-types
npm install react-clipboard-icon

Usage

Import react-clipboard-icon in your React component. Props style and size are optional.

import React from 'react'
import ClipboardIcon from 'react-clipboard-icon'

const style = { fill: 'red' }

const MyComponent = () => (
  <div>
    <ClipboardIcon
      size={40}
      style={style}
    />
  </div>
)

export default MyComponent

Development

Transpile with

npm run build

Lint code with

npm run lint

Deploy with

npm version major|minor|patch

License

MIT