0.2.1 • Published 2 years ago

react-arweave-image v0.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

react-arweave-image

Easily render images from Arweave.

Installation

npm install react-arweave-image

yarn add react-arweave-image

Getting started

import { ArweaveImage } from 'react-arweave-image';

const Page = () => {
  return (
    <>
      {/* pass image hash */}
      <ArweaveImage hash='o-z1Ea6xXyERnujaFyMZwHlsr2SLwnVyDqjP88V2zeE' />
      
      {/* you can also pass in *any* props you can pass to a native HTML `img` tag */}
      <ArweaveImage hash='o-z1Ea6xXyERnujaFyMZwHlsr2SLwnVyDqjP88V2zeE' alt='my image' className='mt-2 rounded' onClick={() => {}} />
    </>
  )
}

Made by pbillingsby with major help from Dhaiwat