Customizable component to trigger RewardKit UI
useRewardKit
hook. It can be styled and customized like a regular button while maintaining the reward claiming functionality.
The component uses React’s forwardRef
to allow access to the underlying button element when needed, and it preserves all standard HTML button attributes except for onClick
which is handled internally for modal management.