Skip to content

PBillingsby/react-arweave-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published