Docs

useDisconnect

Disconnect from given account

Example

import { useDisconnect } from "thirdweb/react";
function Example() {
const { disconnect } = useDisconnect();
return (
<button onClick={() => disconnect(account)}>Disconnect</button>
);
}

Returns

An object with a function to disconnect an account