See
SendEvmTransactionButtonExtends
Omit<ButtonProps,"onError">
Properties
| Property | Type | Description | Inherited from |
|---|---|---|---|
account | `0x${string}` | The account to send the transaction from. | - |
network | SendEvmTransactionWithEndUserAccountBodyNetwork | The network to send the transaction on. | - |
onError? | (error: | Error | APIError) => void | A function to call when the transaction errors. | - |
onSuccess? | (hash: string) => void | A function to call when the transaction is successful. | - |
transaction | AllowedEvmTransactionType | The transaction to send. | - |
size? | ButtonSize | The size of the button. Defaults to “md”. | Omit.size |
asChild? | boolean | Set to true to use a custom element or component in place of the default button element. | Omit.asChild |
isPending? | boolean | Whether the button state is pending. | Omit.isPending |
fullWidth? | boolean | Whether the button should be full width. | Omit.fullWidth |
pendingLabel? | ReactNode | A label to render when the button state is pending. | Omit.pendingLabel |
variant? | ButtonVariant | The variant of the button. Defaults to “primary”. | Omit.variant |