⚡ ZapKit
Components

TransactionStatus

An alert component that reflects the current state of a Starknet transaction with appropriate icons and styling.

Preview

Install

npx shadcn@latest add "https://zapkit.vercel.app/r/transaction-status.json"

This installs:

  • transaction-status.tsx into your components directory
  • shadcn primitives: alert, spinner
  • npm dependencies: @hugeicons/react, @hugeicons/core-free-icons

Usage

import { TransactionStatus } from "@/components/transaction-status";

{
  /* Pending */
}
<TransactionStatus status="pending" message="Submitting transaction…" />;

{
  /* Confirmed */
}
<TransactionStatus status="confirmed" txHash="0xabc…123" />;

{
  /* Failed */
}
<TransactionStatus status="failed" message="Insufficient balance" />;

Props

PropTypeDefaultDescription
status"pending" | "confirmed" | "failed"requiredTransaction state
txHashstringTransaction hash to display
messagestringStatus message
explorerUrlstringLink to block explorer
classNamestringAdditional CSS classes

Visual states

  • Pending — Spinner icon, muted styling
  • Confirmed — Check icon, success (green) styling
  • Failed — Error icon, destructive (red) styling

On this page