function AuthCard(props): Element;Defined in: account-kit/react/src/components/auth/card/index.tsx:46
React component containing an Auth view with configured auth methods and options based on the config passed to the AlchemyAccountProvider
import { AuthCard, useAlchemyAccountContext } from "@account-kit/react";
function ComponentWithAuthCard() {
// assumes you've passed in a UI config to the Account Provider
// you can also directly set the properties on the AuthCard component
const { uiConfig } = useAlchemyAccountContext();
return <AuthCard {...uiConfig!.auth} />;
}| Parameter | Type | Description |
|---|---|---|
|
| Card Props |
Element
a react component containing the AuthCard