Skip to content

Commit 4324a28

Browse files
committed
feat: Add detailed changelog and example for SiteLink component
1 parent f53402b commit 4324a28

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.changeset/real-cars-sell.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,21 @@
22
"thirdweb": minor
33
---
44

5-
Adds SiteLink
5+
Add SiteLink component for creating wallet-aware links between thirdweb-enabled sites. This component automatically adds wallet connection parameters to the target URL when a wallet is connected, enabling seamless wallet state sharing between sites.
6+
7+
Example:
8+
```tsx
9+
import { SiteLink } from "thirdweb/react";
10+
11+
function App() {
12+
return (
13+
<SiteLink
14+
href="https://thirdweb.com"
15+
client={thirdwebClient}
16+
ecosystem={{ id: "ecosystem.thirdweb" }}
17+
>
18+
Visit thirdweb.com with connected wallet
19+
</SiteLink>
20+
);
21+
}
22+
```

0 commit comments

Comments
 (0)