A button component that triggers the RewardKit modal. Can be configured with boostId and deployerAddress props to customize the reward experience.

The component props including boostId, deployerAddress, and standard HTML button attributes

Forwarded ref to access the underlying button element

// Basic usage
<RewardKitButton />

// With configuration
<RewardKitButton
config={{ creatorAddress: '0x', tokens: [], ... }}
className="custom-button"
>
Custom Rewards
</RewardKitButton>
  • NOTE: Exotic components are not callable.

    Parameters

    • props: Omit<HTMLAttributes<HTMLButtonElement>, "onClick"> & { config: RewardKitConfig } & RefAttributes<
          HTMLButtonElement,
      >

    Returns null | ReactElement<any, string | JSXElementConstructor<any>>

Properties

$$typeof: symbol
defaultProps?: Partial<
    Omit<HTMLAttributes<HTMLButtonElement>, "onClick"> & {
        config: RewardKitConfig;
    } & RefAttributes<HTMLButtonElement>,
>
propTypes?: WeakValidationMap<
    Omit<HTMLAttributes<HTMLButtonElement>, "onClick"> & {
        config: RewardKitConfig;
    } & RefAttributes<HTMLButtonElement>,
>
displayName?: string