File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -93,13 +93,17 @@ If you're using **Next.js**, place the `FlowProvider` inside your `layout.tsx`.
93
93
94
94
### ` Connect `
95
95
96
- A drop-in wallet connection component with UI for copy address, logout, and balance (future dynamic) .
96
+ A drop-in wallet connection component with UI for copy address, logout, and balance display .
97
97
98
98
** Props:**
99
99
100
100
- ` variant?: ButtonProps["variant"] ` – Optional button style variant (default: ` "primary" ` )
101
101
- ` onConnect?: () => void ` – Callback triggered after successful authentication
102
102
- ` onDisconnect?: () => void ` – Callback triggered after logout
103
+ - ` balanceType?: "cadence" | "evm" | "combined" ` – Specifies which balance to display (default: ` "cadence" ` ). Options:
104
+ - ` "cadence" ` : Shows the FLOW token balance from the Cadence side
105
+ - ` "evm" ` : Shows the FLOW token balance from the Flow EVM side
106
+ - ` "combined" ` : Shows the total combined FLOW token balance from both sides
103
107
104
108
``` tsx
105
109
import { Connect } from " @onflow/kit"
@@ -183,7 +187,7 @@ import { TransactionLink } from "@onflow/kit"
183
187
### Live Demo
184
188
185
189
<FlowProviderDemo >
186
- <TransactionLink
190
+ <TransactionLink
187
191
txId = " 0x1234567890abcdef"
188
192
variant = " primary"
189
193
/>
You can’t perform that action at this time.
0 commit comments