Deposit Modal

An accessible React modal for crypto deposits with token and network details, a copyable address, minimum deposit guidance, and expiry handling.

Props

PropertyTypeDefaultDescription
openbooleanControls whether the modal is visible.
onOpenChange(open: boolean) => voidCalled when the user closes the modal or its visibility changes.
addressstringThe deposit address to display and copy.
amountstring"0.000"The amount displayed in the ticket header.
amountLabelstringOptional 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.
explorerBaseUrlstring"https://solscan.io/account"Base URL used to create the explorer link.
minDepositstringOptional minimum deposit amount shown in the warning.
expiresAtDate | numberExpiry timestamp; copy and explorer actions disable after expiry.
noticeReact.ReactNodeExtra content appended to the deposit warning.
onRefresh() => voidOptional handler used to refresh expired deposit details.
isRefreshingbooleanfalseShows the refresh action's loading state.