react-reward-button
Version:
Drop-in React component that sends Ethereum token rewards and shows confetti animations. Built with wagmi, ethers, and ShadCN UI.
31 lines (30 loc) • 907 B
TypeScript
import React from 'react';
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
/**
* Whether the button should render as a child component (using Slot)
* This allows for composition patterns common in shadcn/ui
*/
asChild?: boolean;
/**
* Visual variants for the button
*/
variant?: 'default' | 'secondary' | 'outline' | 'ghost' | 'destructive';
/**
* Size variants for the button
*/
size?: 'default' | 'sm' | 'lg' | 'icon';
/**
* Whether the button is in a loading state
*/
isLoading?: boolean;
/**
* Custom text to show when loading
*/
loadingText?: string;
/**
* Whether the button is in a success state
*/
isSuccess?: boolean;
}
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
export { Button };