Skip to content
Uxelith
Sign in
Prov1.0.1App screens

Sign-in Screen

A complete sign-in: social providers, email and password, or a one-time code by email — with validation, busy states and errors.

Installs with Uxelith ProHow
Licence
Pro
Packages
2
Updated
30 Oct 2026
Live

Installation

Usage

example.tsx
"use client"

import { SignIn } from "@/components/sign-in"

export default function Page() {
  return (
    <SignIn
      onPasswordSignIn={async (email, password) => {
        const res = await fetch("/api/sign-in", { method: "POST", body: JSON.stringify({ email, password }) })
        if (!res.ok) return "Email or password is incorrect."
      }}
    />
  )
}

Props

PropTypeDefaultDescription
onPasswordSignIn(email, password) => Promise<void | string>—Return or throw a message to show it.
onSendCode / onVerifyCode(email[, code]) => Promise<void | string>—One-time-code flow.
methods("password" | "code")[]bothWays to sign in. With one, the switch between them is hidden; the first is shown first.
providers{ id; label; href?; onClick? }[]Google, GitHubSocial buttons (google, github, apple). With href it's a link to your OAuth start URL; with onClick, a button.
productNamestring"Uxelith"Shown in the heading.
forgotPasswordHref / signUpHrefstring"#"Links.
headingLevel1 | 211 when this is the page's top section; 2 when it sits under another title.

Accessibility

  • A real <form>: Enter submits, browsers offer saved passwords and one-time codes.
  • Field errors are tied to their fields; form errors are alerts.
  • Moving to the code step puts focus in the code field; buttons say what they are waiting for.

Changelog

  1. v1.0.1Latest

    Fix: with a single way to sign in, the subtitle no longer says "Choose how to continue".

More in App screens

All 3 in App screens
  • App screensPro

    Dashboard Shell

    An application frame: a sidebar that folds to an icon rail, a search that grows into a ⌘K command palette, stats with sparklines, a dense revenue chart with a 7/30/90-day range and recent orders with status badges.

  • App screensPro

    Settings Screen

    An account settings screen: profile, notifications and appearance, a side navigation that follows your place and marks edited sections, and a save bar that counts changes, spins, ticks and shakes on failure.