Lens Blocks are currently in beta and not ready for production use!

Account Hover Card Block

A hover card that displays Lens account details when hovering over an account name or handle.

Installation

Usage

import { LensAccountHoverCard } from "@/components/lens-account-hover-card";
import { useSessionClient } from "@lens-protocol/react";
import { useWalletClient } from "wagmi";
const session = useSessionClient();
const wallet = useWalletClient();
const account = useAccount({
  username: {
    localName: "paulburke",
  },
});
<LensAccountHoverCard account={account} wallet={wallet} session={session}>
  @paulburke
</LensAccountHoverCard>