Terminal Sign In
Full-height sign-in screen styled like a macOS terminal window, complete with traffic-light window dots, a `$ ` prompt-style email field, and a "Send link" action styled like a command being run.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/terminal-sign-in.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/auth/auth29.tsx instead.
Usage
The file also exports auth29Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Auth29, auth29Demo } from "@/components/blocks/auth/auth29"; export default function Page() { return <Auth29 {...auth29Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| windowTitle | string | "sign-in.sh" | Label shown in the terminal window's title bar. |
| heading | string | "Sign in to continue" | Heading shown above the terminal window. |
| description | string | "No password, just a magic link." | Comment-styled line inside the terminal, above the prompt. |
| promptLabel | string | "auth login --email" | Monospace label above the email field, styled like a CLI flag. |
| emailPlaceholder | string | "[email protected]" | Placeholder text for the email input. |
| actionLabel | string | "Send link" | Label on the command-styled action button. |
| footerNote | string | "# a one-time link expires after 15 minutes" | Small comment-styled line at the bottom of the terminal. |
| className | string | none | Extra classes for the outer section element. |
Behavior notes
- The dark, monospace terminal window (bg-neutral-950, font-mono, traffic-light dots) is a deliberate one-off stylistic exception scoped to this block only; it does not use the site's semantic color tokens the way every other block does.
- This is a static/server component: the email field and "Send link" action are rendered for visual completeness but are not wired to real form submission or navigation, since sign-in is a backend action.
- No client-side state is used; the component renders the same markup on every request.
More Auth Blocks
View all →centered-sign-in-card
Centered Sign In Card
Full-height centered sign-in card with social buttons, a password show/hide toggle, and remember-me.
split-screen-sign-up
Split-Screen Sign Up
Two-column registration screen with a sign-up form on one side and a full-bleed photo with a customer quote on the other.
email-verification-code
Email Verification Code
Full-height OTP screen with a 6-digit segmented code input, auto-advancing focus, and a live resend countdown.
forgot-password-request
Forgot Password Request
Full-height password recovery screen with a single email field, a send-reset-link button, and a back-to-sign-in link.
set-new-password
Set New Password
Full-height reset-password screen with independent show/hide toggles per field and a live password-requirements checklist.
magic-link-sign-in
Magic Link Sign In
Full-height passwordless sign-in screen with an email field, a send-magic-link button, and social login as a fallback.