T402 API Reference - v2.8.0
    Preparing search index...

    Interface PaymentButtonProps

    Props for PaymentButton component

    interface PaymentButtonProps {
        onClick?: () => void | Promise<void>;
        disabled?: boolean;
        loading?: boolean;
        children?: ReactNode;
        className?: string;
        variant?: "primary" | "secondary" | "outline";
        size?: "sm" | "md" | "lg";
    }
    Index

    Properties

    onClick?: () => void | Promise<void>

    Click handler

    disabled?: boolean

    Whether the button is disabled

    loading?: boolean

    Whether the button is in loading state

    children?: ReactNode

    Button text

    className?: string

    Additional CSS class names

    variant?: "primary" | "secondary" | "outline"

    Button variant

    size?: "sm" | "md" | "lg"

    Button size