Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dhaiwat10/react-ipfs-image


https://github.com/dhaiwat10/react-ipfs-image

Last synced: 21 days ago
JSON representation

Awesome Lists containing this project

README

        

# react-ipfs-image

Easily render images from IPFS.

## Installation

```bash
npm install react-ipfs-image

yarn add react-ipfs-image
```

## Getting started

```tsx
import { IpfsImage } from 'react-ipfs-image';

const Page = () => {
return (
<>
{/* works with both of the following formats */}

{/* you can pass in a gateway URL of your choice. the default gateway url is `https://ipfs.infura.io/ipfs` */}

{/* you can also pass in *any* props you can pass to a native HTML `img` tag */}
{}} />
>
)
}
```

This package also has ``, `` and `` that work similarly to ``.

Made by [Dhaiwat](https://twitter.com/dhaiwat10)! :)