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
OptionaldefaultProps
defaultProps?: Partial< Omit<HTMLAttributes<HTMLButtonElement>, "onClick"> & { config: RewardKitConfig; } & RefAttributes<HTMLButtonElement>,> OptionalpropTypes
propTypes?: WeakValidationMap< Omit<HTMLAttributes<HTMLButtonElement>, "onClick"> & { config: RewardKitConfig; } & RefAttributes<HTMLButtonElement>,> OptionaldisplayName
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