0.0.1 • Published 2 years ago
atmos-wc v0.0.1
Atmos Web Components
This library includes web components that can be integrated easily into any web site.
Components
NFT Balance
This component displays the available balance of assets from a contract. It will automatically update every 15s and will shut down after a single call if the assets are sold-out.
PROPERTIES
- Endpoint:string - species an atmos-compatible endpoint that provides live contract metadata
SLOTS
- Available? - displayed after the count when the NFT still has available inventory to purchase
- SoldOut? - displayed after the count when the NFT is sold out
USAGE
Simple Example
<script type="module" src="./dist/atmos-wc.es.js"></script>
<nft-balance endpoint="https://platform.atmos.xyz/api/v1/public/nft/eth/0x9848349" />
With Slots
<script type="module" src="./dist/atmos-wc.es.js"></script>
<nft-balance endpoint="https://platform.atmos.xyz/api/v1/public/nft/eth/0x9848349">
<span slot="available">Buy one now!</span>
<span slot="soldout">Sorry, you missed your chance.</span>
</nft-balance>
0.0.1
2 years ago