
Link
Create wallet
Onboard users to your app with email, social login, or passkeys

Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Onboard users to your app with email, social login, or passkeys

import { useWalletKitLink } from "@walletkit/react-link";
export function Connect() {
const walletKit = useWalletKitLink();
const [isConnected, setIsConnected] = useState(false);
const handleConnect = async () => {
await walletKit.connect();
setIsConnected(true);
};
if (!isConnected) {
return <button onClick={handleConnect}>Connect</button>;
}
return <div>Connected!</div>;
}
import { useConnect } from "@walletkit/wagmi-link";
export function Connect() {
const { connect } = useConnect(); // imported from @walletkit/wagmi-link
const { isConnected } = useAccount();
if (!isConnected) {
return <button onClick={connect}>Connect</button>;
}
return <div>Connected!</div>;
}