Bloxwap / HIG0.1.1
Component referenceBlocks

ReferralCodeBlockNew

Loading preview…

API reference

export declare function ReferralCodeBlock({ volume, goal, volumeOptions, code, labels, onSetCode, busy, error, normalizeCode, shareUrl, onCopy, onShare, rewards, onBack, headingId }: ReferralCodeBlockProps): React.JSX.Element;

React Native API

export declare function ReferralCodeBlock({ volume, goal, volumeOptions, code, labels, onSetCode, busy, error, normalizeCode, shareUrl, onCopy, onShare, rewards, onBack, headingId }: ReferralCodeBlockProps): React.JSX.Element;

Usage & accessibility

The traded volume is a named progress bar with its value read as the amount of the goal. The code field is labelled, with its hint and any error as its description. The confirmation is a heading, a warning and a labelled checkbox; Confirm is unavailable until it is ticked. Copy code announces Copied. The rewards balance reads with its token; Claim is unavailable below the minimum, which is said under the balance, and a failed claim is an alert.

Feedback: Set code opens the confirmation. Confirm asks the host to save the code once; the host passes it back as code. Copy code and Share link call the host's clipboard and share sheet. Claim to account asks the host to send the whole balance.

Read the usage guide

On this page