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
Prop | Type | Description |
---|---|---|
| string | Required. Your Comet Publishable Key. |
| boolean | If |
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
Prop | Type | Description |
---|---|---|
| string | Required. The ID of the Comet collection that can be minted with this |
Example
Last updated