NFT-Checkout-Package HTML version
Insomnia NFT project's React plugin library published by creator's portal.
Built with Lit and TypeScript.
Check out the Demo!
Usage
Install the SDK
<!--
You can embed the SDK in <head> tag of your site. Or just before <checkout-widget> code.
-->
<script src="https://unpkg.com/nft-checkout-html@0.0.1/dist/CheckoutWidget.1492b2e8.js"></script>
Set up widget
Just add this line
<checkout-widget collectionid="<your_collection_id>" view="<normal | mini>"></checkout-widget>
collectionid: Your collection id
view: view mode, either normal or mini(with necessary fields only)
note: Above is sample code and demo purpose. Don't use it straightforward on production. Use it replacing collectionId with your project's id
You can import DetailBox compoent and use directly in your front-end code.
Usage on sitebuilder like Wix
You can embed the SDK adding below code snippet to your site wix
<script src="https://unpkg.com/nft-checkout-html@0.0.1/dist/CheckoutWidget.1492b2e8.js"></script>
<checkout-widget collectionid="<your_collection_id>" view="<normal | mini>"></checkout-widget>