1.0.2 • Published 2 years ago

solana-nft v1.0.2

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

solana-nft

React component to render Solana NFTs as images

Usage

The component has one required prop: id (the token address id of the NFT) and 3 optional props: height (number), width (number), and style (React.CSSProperties)

// yarn add solana-nft or npm i solana-nft

import { NFT } from 'solana-nft'

<NFT id="<token_account_id>" />

<NFT id="<token_account_id>" height={600} width={600} style={{ borderRadius: "50%" }} />
1.0.2

2 years ago

1.0.1

2 years ago