This guide is for hooks only, as the Dynamic Widget UI component already displays the wallets for you and allows you to login with them.
If the user is already logged in, using this hook will trigger linking with that wallet rather than login. The difference between login and linking is that login will create a new user if one doesn’t exist, whereas linking will add the wallet to the existing user.
useWalletOptions allows you to prompt the user to login using a specific wallet (by passing in the key).
import { useWalletOptions } from "@dynamic-labs/sdk-react-core";

// component setup etc.

const { selectWalletOption } = useWalletOptions();

const connectWithWallet = async (walletKey) => {
  return await selectWalletOption(walletKey)
}
This method takes a wallet key, you can see how to find the available wallet keys in Find a Wallet Key.