Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dhaiwat10/react-ipfs-image
https://github.com/dhaiwat10/react-ipfs-image
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dhaiwat10/react-ipfs-image
- Owner: Dhaiwat10
- License: mit
- Created: 2022-07-03T14:52:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-29T19:02:10.000Z (over 1 year ago)
- Last Synced: 2024-10-04T13:16:26.266Z (about 1 month ago)
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/react-ipfs-image
- Size: 358 KB
- Stars: 21
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-ipfs-image
Easily render images from IPFS.
## Installation
```bash
npm install react-ipfs-imageyarn 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)! :)