@frak-labs/components
v0.0.4
Published
Frak Wallet components, helping any person to interact with the Frak wallet.
Downloads
208
Readme
Frak Wallet components
Those components are meant to be used to interact with the Frak Wallet.
They are built as Web Components, so you can use them in any web project, no matter the framework you are using.
Checkout our documentation for more information's about the usage:
To have more info about how does it works under the hood, you can check this
Setup
Add the following script tag to your HTML file:
<script src="https://cdn.jsdelivr.net/npm/@frak-labs/components@latest/dist/bundle/components.js" defer="defer"></script>
Quick start
Add a minimal configuration:
window.FrakSetup = {
config: {
metadata: {
name: "Your App Name",
},
},
};
Sample usage
Sample code to use share button:
<frak-button-share></frak-button-share>
Button with custom text:
<frak-button-share text="Share and earn!"></frak-button-share>
Button with custom class:
<frak-button-share classname="button button-primary"></frak-button-share>