Skip to content

TransactionResult

GitHub

A component that displays the result of a transaction with an icon and message.

Installation

npm
npx maiton add transactionResult

Usage

import { TransactionResult } from "../components/TransactionResult";
<TransactionResult type="success">
  You have successfully purchased a product. Go back to the home page.
</TransactionResult>

Props

The TransactionResult component extends Container, so you can pass all ContainerProps.

type

DescriptionThe type of transaction result
Type"success" | "failed" | "error"

title

DescriptionThe title of the transaction result
Typestring | undefined
Default"success" | "failed" | "error"

titleProps

DescriptionAdditional props for the title text
TypeTextProps | undefined

childrenProps

DescriptionAdditional props for the children text
TypeTextProps | undefined