Sign-in preview

Sign-in

A sign-in card with social providers, email and password, a magic-link alternative, inline validation and a submitting state.

  • Group
    Auth
  • Origin
    Inspired · Original (this library)
  • License
    MIT
  • Added
    Oct 22
npx shadcn@latest add @deank/sign-in

The registry stays private. Install from the repo with a GitHub token — see the README.

Usage

import { SignIn } from "@/registry/blocks/sign-in/sign-in";

<SignIn onSubmit={() => {}} />

Props

PropTypeDefaultDescription
title?string"Welcome back"
subtitle?string"Sign in to your workspace."
providers?AuthProvider[][]
onSubmit(values: { email: string; password?: string; mode: "password" | "link" }) => Promise<void> | voidResolve to sign in; throw an Error to show its message
onProvider?(id: string) => void
forgotHref?string"#"Link targets for the footer
signUpHref?string"#"

When to use

Sign-in and sign-up screens; gated areas of an app.

When not to use

Two-factor code entry (use otp-input); account settings (use settings-panel).

Related

Text field · OTP input · Button