Earn passive revenue with one simple integration.
Your users farm, you earn.
Size
Corners
Theme
$ npm install @thehoneyjar/widget
Usage:
App.tsx
import { SFWidgetButton, createPreset } from "@thehoneyjar/widget";
export default function App() {
const handleDeposit = (params) => {
console.log("Deposit:", params);
};
// Customize the button style by passing size, rounded, and theme options
const buttonStyle = createPreset("md", "full", "green");
return (
<SFWidgetButton
apiKey={process.env.NEXT_PUBLIC_API_KEY}
onDeposit={handleDeposit}
style={buttonStyle}
/>
);
}