Skip to content

Commit b9bf1be

Browse files
authored
Update connect docs with balance type (#1329)
Co-authored-by: Chase Fleming <1666730+chasefleming@users.noreply.github.com>
1 parent 9c9b130 commit b9bf1be

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/tools/kit/index.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,17 @@ If you're using **Next.js**, place the `FlowProvider` inside your `layout.tsx`.
9393

9494
### `Connect`
9595

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.
9797

9898
**Props:**
9999

100100
- `variant?: ButtonProps["variant"]` – Optional button style variant (default: `"primary"`)
101101
- `onConnect?: () => void` – Callback triggered after successful authentication
102102
- `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
103107

104108
```tsx
105109
import { Connect } from "@onflow/kit"
@@ -183,7 +187,7 @@ import { TransactionLink } from "@onflow/kit"
183187
### Live Demo
184188

185189
<FlowProviderDemo>
186-
<TransactionLink
190+
<TransactionLink
187191
txId="0x1234567890abcdef"
188192
variant="primary"
189193
/>

0 commit comments

Comments
 (0)