Hosted-style sign-in page
A page needs a ready-made authentication screen using the methods configured in Clerk Dashboard.
Clerk · Component
SignIn renders Clerk’s configured authentication UI, allowing users to sign in or sign up by default. It supports customization through properties and can show required session tasks after authentication.
Render <SignIn /> in your application to provide Clerk’s configured authentication UI. The available methods and social connections come from Clerk Dashboard settings, while component properties let you customize the rendered experience; the component can also present required post-sign-in session tasks.
<SignIn />| Name | Type | Description |
|---|---|---|
node | HTMLDivElement | HTML container receiving the mounted component. |
props | SignInProps | Optional properties controlling the rendered sign-in component. |
mountSignIn() returns void; the rendered component presents the configured sign-in or sign-up UI.
import { SignIn } from '@clerk/react'
export default function SignInPage() {
return <SignIn />
}Render the component in a page to provide Clerk’s configured sign-in flow.
A page needs a ready-made authentication screen using the methods configured in Clerk Dashboard.
An application wants one entry point for returning users and new users.
The app must collect required follow-up information after authentication.
A vanilla JavaScript frontend needs to display authentication without a framework component tree.
SignIn renders a UI for users to sign in or sign up by default. Its behavior is governed by Clerk Dashboard settings, including enabled sign-in options and social connections.
Follow-up: How can the rendered flow be customized? Pass additional component properties when rendering it, and configure the authentication methods in the Clerk Dashboard.
The component can display session tasks that users must complete after signing in. This allows required follow-up actions to remain part of the authentication experience.
Follow-up: What controls whether those tasks appear? Clerk determines them from the session requirements configured for the user or instance.
The JavaScript frontend API exposes mountSignIn(), unmountSignIn(), openSignIn(), and closeSignIn() for rendering and controlling the component. mountSignIn() renders into an HTML div, while openSignIn() opens an overlay at the document body's root.
Follow-up: What signature does mountSignIn use? It accepts an HTMLDivElement and optional SignInProps, returning void.
SignUpmountSignIn()unmountSignIn()openSignIn()closeSignIn()Clerk