Search

Search components and flows across the catalog

HarborConceptInteractive preview

Harbor: Set up two-factor

A three-step two-factor setup card with a stepper: choose authenticator app, security key or text message, scan a QR code with a copyable setup key, then type a 6-digit code into auto-advancing boxes.

Category
Security
Platform
Web

Interactive screenClick through it, resize it, or switch states. It’s real UI, not a screenshot.Choose a method state

Use this screen

Free to use. It works on its own in any React and Tailwind project, so you can add it with one command, paste the code, or hand the prompt to your coding agent.

FreeReact 18+Tailwind v3.4 or v4No extra packages

1. Add it with the shadcn CLI

npx shadcn@latest add https://www.thatdesignui.com/r/screens/harbor-set-up-two-factor.json

2. Use it

Every prop is optional
app/page.tsx
import Harbor2faSetup from "@/components/harbor-2fa-setup";

export default function Page() {
  return <Harbor2faSetup />;
}

Prefer to paste it yourself? Open the .

Under the hood

How it’s built

What’s inside

  1. Harbor's calm #eaf1f1 app shell: a 15rem sidebar from 1024px (teal #0b5d61 anchor logo, 'Northlight Studio' / 'Harbor · Team plan', Settings active with a white pill and 3px teal bar, the Security sub-item highlighted #e0eded with a small amber dot) and a 64px breadcrumb 'Northlight Studio / Settings / Security / Two-factor'. Content max 68rem, a 'Back to security' link, a 30px bold 'Turn on two-factor authentication' heading and a 'Two-factor Off / Setting up / On' status pill.
  2. From 1280px a flexible setup card (radius 18px, #fbfdfd) sits beside a 20rem column. The card header holds a stepper on a faint teal radial glow: three 28px circles (current one white with a 2px teal ring, done ones filled teal with a check) labelled 'Step N' and 'Choose method / Scan QR code / Enter code', joined by 2px lines that fill teal left to right. On phones the labels sit under the circles.
  3. Step 1: three radio cards (44px icon tile that fills teal when picked, bold label, hint, radio dot): Authenticator app with a green 'Recommended' badge, Security key, and Text message with an amber 'Less secure' badge that, when picked, adds a warning line about SIM swaps.
  4. Step 2 (app): a 208px white QR frame with a deterministic 25x25 module grid drawn in SVG (rounded finder squares with teal centres, a teal anchor logo in the middle), teal corner brackets and a glowing scan line sweeping up and down; beside it three numbered steps, a 'Setup key' box with JBSW Y3DP EHPK 3PXP 4JQX 2LMN 7RTA KQ5C as monospace chips and a Copy button that turns into a green 'Copied', and a 'Can't scan the code?' disclosure listing account, key, type and digits. Security key shows a key illustration whose light blinks while 'Waiting for your key…'; Text message shows the number on file, an amber warning and 'Use an authenticator app instead'.
  5. Step 3: six 52x60px monospace digit boxes (42x56 on phones) split 3 + 3 by a dash; typing advances, Backspace goes back, arrows move, pasting or autofilling 6 digits fills all, and the sixth digit verifies automatically. A 30-second countdown ring (or a text-message resend timer) sits under them, and a dashed hint box reads 'Preview demo: the code is 246810' with 'Fill it in', which types the digits one by one and verifies.
  6. A wrong code shakes the boxes, turns them red (#fdf5f3 / #c9604a) and shows an inline alert with the tries left; typing again clears the error. The right code shows 'Checking…' for about a second then calls onVerified({ method }). The footer bar (#f4f8f8) shows 'Step N of 3', Back, and a teal primary that reads Continue, 'I've scanned it', 'Register key', 'Send code' or 'Verify and turn on'. The side column has an 'Account security' half-ring gauge at 40 with a light-teal ghost arc to 85, a four-item checklist, and a 'Workspace policy' card (amber 'Required from Dec 15' pill, avatar stack, '4 of 7 teammates protected' bar).

How it behaves

  • Picking 'Text message' shows the amber 'Less secure' warning; Continue then shows the phone number and 'Use an authenticator app instead' switches the step to the QR code.
  • On the QR step, Copy turns into a green 'Copied' for about two seconds and 'Can't scan the code?' expands a panel with the account, key, type and digits.
  • Typing a digit moves focus to the next box, Backspace in an empty box goes back, and pasting '246810' fills all six boxes and verifies.
  • Entering 135790 shakes the boxes, turns them red and shows 'That code didn't match' with the tries left; 'Fill it in' then completes and the standalone card shows 'Two-factor is on' while the gauge rises to 85.
  • The stepper marks finished steps with teal checks and fills the connecting lines; Back returns to the previous step with the chosen method kept.
  • At 375px the six boxes, the stepper and the footer buttons fit without sideways scrolling; every control has a teal focus ring and with reduced motion the scan line and shakes stop.

More from Harbor

Harbor: Save backup codes

Harbor: Save backup codes

HarborConceptSecurity screen

Harbor: Plan updated

Harbor: Plan updated

HarborConceptSettings screen

Harbor: Cancel your plan

Harbor: Cancel your plan

HarborConceptSettings screen

Harbor: Team members

Harbor: Team members

HarborConceptCollaboration screen