The AuthModal component provides a ready-to-use authentication interface with support for multiple login methods. It renders a “Connect Wallet” button that opens a modal with all configured authentication options.
Basic Usage
import { AuthModal } from "crefy-connect";export default function App() { return ( <div> <h1>My App</h1> <AuthModal /> </div> );}
Customization
You can customize the Connect Wallet button using optional props:
Props
Prop
Type
Required
Description
buttonClassName
string
❌
Optional CSS class for the button
buttonStyle
React.CSSProperties
❌
Optional inline style object for custom button styling