reactimage2base64
TypeScript icon, indicating that this package has built-in type declarations

1.0.11 • Public • Published

reactimage2base64

React component to generate an image source to base64. You can make this using a path or URL. You could use all the image attributes and base events like a onclick, onmouseover etc..

NPM JavaScript Style Guide

Install

npm install --save reactimage2base64

Usage

import * as React from 'react'
 
import Image from 'reactimage2base64'
 
class Example extends React.Component {
  render () {
    return (
      <Image src="..." />
    )
  }
}

Result

License

MIT © p333ter

e8739c115366c12a48098d554ea4e93512bd0ed1

Package Sidebar

Install

npm i reactimage2base64

Weekly Downloads

2

Version

1.0.11

License

MIT

Unpacked Size

52.8 kB

Total Files

8

Last publish

Collaborators

  • ppasmik