ENGLISH·COURSE API
    Preparing search index...
    PendingButtonProps: Omit<ButtonProps, "children"> & {
        isPending: boolean;
        label: string;
        pendingLabel: string;
    }

    Props for PendingButton.

    Type Declaration

    • isPending: boolean

      Whether the request this button started is in flight.

    • label: string

      What the button says at rest.

    • pendingLabel: string

      What the button says while the request is in flight.

    Every ButtonProps except children passes through, so a caller keeps its own type, variant, size, onClick and className. disabled composes rather than competes: a button disabled for the caller's own reasons stays disabled, and a request in flight disables it regardless.