A passwordless sign-in with SSO routing, one-time codes, passkeys and social sign-in.
Import it and pass your content. The props that matter most are listed next.
import { SignIn } from "@/components/ui/notchset/blocks/sign-in";
export function Login() {
return (
<SignIn
brand={{ name: "Relay" }}
onRequestCode={async (email) => {
await fetch("/api/auth/code", { method: "POST", body: JSON.stringify({ email }) });
}}
onVerify={async (email, code) => {
const res = await fetch("/api/auth/verify", { method: "POST", body: JSON.stringify({ email, code }) });
return res.ok;
}}
next={{ label: "OPENING /AGENTS", onOpen: () => location.assign("/agents") }}
/>
);
}onRequestCode / onVerify–
(email, signUp) => Promise / (email, code) => Promise<boolean>Send a code (the same answer whether or not the account exists) and check it.
detectSso / onSso–
(email) => Promise<SsoMatch | null> / (email, sso) => Promise<string>Route an SSO domain to its provider; onSso resolves with who signed in.
providers–
{ id, label, icon?, onSignIn() => Promise<string> }[]Passkey and social sign-in; the last one used is marked on this device.
next–
{ label, onOpen? }Where the done state goes ("OPENING /AGENTS").
brand / aside / termsLink / footer–
…The mark, the ink panel (hidden under 760px), the terms link in sign-up and the footer line.
SignIndata-slot="sign-in"
Email, code and done steps, with SSO and providers.
components/ui/notchset/blocks/sign-in.tsx
pnpm dlx shadcn@latest add https://beautiful-ui.dev/r/sign-in.jsonpnpm dlx shadcn@latest add https://beautiful-ui.dev/r/radix-nova/sign-in.jsonFree, no account or key. Use the command for your project's primitives: a radix-*, new-york or default style in components.json is Radix, a base-* style is Base UI. With the @beautiful-ui registry added, @beautiful-ui/<name> picks for you.
pnpm add class-variance-authority@^0.7The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Give your coding assistant the Markdown guide instead of screenshots.
https://beautiful-ui.dev/api/mcp (setup)v1.0.0 · 2026-10-04
First release