SignInPage API
API reference docs for the React SignInPage component. Learn about the props, CSS, and other APIs of this exported module.
Demos
Import
import { SignInPage } from '@toolpad/core/SignInPage';
// or
import { SignInPage } from '@toolpad/core';
Learn about the difference by reading this guide on minimizing bundle size.
Props of the native component are also available.
Name | Type | Default | Description |
---|---|---|---|
providers | Array<{ id: 'apple' | 'auth0' | 'cognito' | 'credentials' | 'discord' | 'facebook' | 'fusionauth' | 'github' | 'gitlab' | 'google' | 'instagram' | 'keycloak' | 'line' | 'linkedin' | 'microsoft-entra-id' | 'okta' | 'passkey' | 'slack' | 'spotify' | 'tiktok' | 'twitch' | 'twitter', name: string }> | [] | The list of authentication providers to display. |
signIn | func | undefined | Callback fired when a user signs in. Signature: function(provider: AuthProvider, formData: FormData, callbackUrl: string) => void | Promise
|
slotProps | { emailField?: object, forgotPasswordLink?: object, passwordField?: object, signUpLink?: object, submitButton?: object } | {} | The props used for each slot inside. |
slots | { emailField?: elementType, forgotPasswordLink?: elementType, passwordField?: elementType, signUpLink?: elementType, submitButton?: elementType } | {} | The components used for each slot inside. See Slots API below for more details. |
The component cannot hold a ref.
Slot name | Class name | Default component | Description |
---|---|---|---|
emailField | TextField | The custom email field component used in the credentials form. | |
passwordField | TextField | The custom password field component used in the credentials form. | |
submitButton | LoadingButton | The custom submit button component used in the credentials form. | |
forgotPasswordLink | Link | The custom forgot password link component used in the credentials form. | |
signUpLink | Link | The custom sign up link component used in the credentials form. |
Source code
If you did not find the information in this page, consider having a look at the implementation of the component for more detail.