Components
React components you can drop into your web app with 1 line of code.
CometProvider
In order for the other components and hooks to work properly within your React application, you need to wrap your component tree with the CometProvider
component. Doing so is simple; all you'll need is your Comet Publishable Key, obtainable at www.withcomet.com/devstart.
It is important that you add CometProvider
to your app, otherwise other components and hooks will not work properly!
API
publishableKey
string
Required. Your Comet Publishable Key.
showFullWallet
boolean
If true
(default), users will see a full Comet wallet + gallery when they log in. Otherwise, they'll see a minimal UI.
Example
LoginButton
A button that lets a user log in or sign up to Comet. When logged in, it shows the user's username and profile picture.
API
No props are required for LoginButton
.
Example
MintButton
A drop-in button that lets users mint an NFT that's been launched with Comet.
API
collectionId
string
Required. The ID of the Comet collection that can be minted with this MintButton
.
Example
Last updated