Deposit Modal
An accessible React modal for crypto deposits with token and network details, a copyable address, minimum deposit guidance, and expiry handling.
Props
| Property | Type | Default | Description |
|---|---|---|---|
| open | boolean | Controls whether the modal is visible. | |
| onOpenChange | (open: boolean) => void | Called when the user closes the modal or its visibility changes. | |
| address | string | The deposit address to display and copy. | |
| amount | string | "0.000" | The amount displayed in the ticket header. |
| amountLabel | string | Optional label displayed above the amount. | |
| token | { symbol: string; iconUrl: string } | Token symbol and icon URL. | |
| network | { name: string; iconUrl: string; color?: string } | Network name, icon URL, and optional accent color. | |
| explorerBaseUrl | string | "https://solscan.io/account" | Base URL used to create the explorer link. |
| minDeposit | string | Optional minimum deposit amount shown in the warning. | |
| expiresAt | Date | number | Expiry timestamp; copy and explorer actions disable after expiry. | |
| notice | React.ReactNode | Extra content appended to the deposit warning. | |
| onRefresh | () => void | Optional handler used to refresh expired deposit details. | |
| isRefreshing | boolean | false | Shows the refresh action's loading state. |