1.0.0 • Published 3 years ago

salman-kcom v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

KOI-Components

This project contains react components for development of apps on top of Koi.

Installation Instructions

You can install this package by running: npm install @_koi/components or yarn add @_koi/components

List of Components:

Image

Description :

This component will render image from arweave.dev by adding the PoRT headers to the image, so that it can be verified by the gateway.

Requirements:

This component requires a wallet object in localstorage or window.wallet so that the headers can be signed with the wallet.

Following are the props consumed by the components.

propstypedefaultrequiredvalues
srcstringnulltrueA valid arweave.dev resource URL
styleobjec{}falseJSX style object
walletLocationstringlocalStoragefalselocalstorage or window

TODO:

Add wallet key to props