Login Form

A login form component for authentication.

Use an organization email to easily collaborate with teammates

Forgot your password?
By continuing, you acknowledge that you understand and agree to the Terms & Conditions and Privacy Policy.
Don't have an account?

Installation

pnpm add @notion-kit/auth-ui

Examples


Login Form

Use an organization email to easily collaborate with teammates

Forgot your password?
By continuing, you acknowledge that you understand and agree to the Terms & Conditions and Privacy Policy.
Don't have an account?
<LoginForm  callbackURL="/"  mode={mode}  onModeChange={setMode}/>

API Reference

LoginForm

Note

It should be used within the <AuthProvider> context.

PropTypeDefaultDescription
mode*LoginMode-The mode of the form. Either for signing up or signing in.
callbackURLstring-The URL to redirect after successful authentication.
onModeChange(mode: LoginMode) => void-Handler that is called when the mode of the form changes.