RewardKitButton( props: Omit<HTMLAttributes<HTMLButtonElement>, "onClick"> & { config: RewardKitConfig; } & RefAttributes<HTMLButtonElement>,): null | ReactElement<any, string | JSXElementConstructor<any>> Parameters
- props: Omit<HTMLAttributes<HTMLButtonElement>, "onClick"> & { config: RewardKitConfig } & RefAttributes<
HTMLButtonElement,
>
Returns null | ReactElement<any, string | JSXElementConstructor<any>>
Properties
Readonly
$$typeof
$$typeof: symbol
Optional
defaultProps
defaultProps?: Partial< Omit<HTMLAttributes<HTMLButtonElement>, "onClick"> & { config: RewardKitConfig; } & RefAttributes<HTMLButtonElement>,> Optional
propTypes
propTypes?: WeakValidationMap< Omit<HTMLAttributes<HTMLButtonElement>, "onClick"> & { config: RewardKitConfig; } & RefAttributes<HTMLButtonElement>,> Optional
displayName
displayName?: string
A button component that triggers the RewardKit modal. Can be configured with boostId and deployerAddress props to customize the reward experience.
Param: props
The component props including boostId, deployerAddress, and standard HTML button attributes
Param: ref
Forwarded ref to access the underlying button element
Example