1.1.0 • Published 1 year ago
@nftverse/nft-store-plugin v1.1.0
Description
This plugin can be used to integrate the marketplace components of NFTVerse into your very own react application
Components
- The
Collection
component can be used to display the collections that the marketplace has to offer. It takes in the following props:marketplaceId*
: The id of the marketplace that you want to display the collections ofclassName
: Styles to be applied to the component
- The
NewlyMintedNFTs
component can be used to display the newly minted NFTs in the marketplace. It takes in the following props:marketplaceId*
: The id of the marketplace that you want to display the newly minted NFTs ofclassName
: Styles to be applied to the componentonBuyNowClick
: A callback function that is called when the user clicks on the buy now button.
- The
NFTDetails
component can be used to display the details of a particular NFT. It takes in the following props:nftId*
: The id of the NFT that you want to display the details ofmarketplaceId*
: The id of the marketplace that the NFT belongs toclassName
: Styles to be applied to the component
Installation and usage
- Installing the package
npm i @nftverse/nft-store-plugin
- Importing the components
import { Collection, NewlyMintedNFTs, NFTDetails } from '@nftverse/react-store-plugin'
- Using the components
<Collection marketplaceId={3} className="className" /> <NewlyMintedNFTs marketplaceId={3} className="className" onBuyNowClick={onBuyNowClick} /> <NFTDetails nftId={3} marketplaceId={4} className="className" />
1.1.0
1 year ago