HarborConceptInteractive preview
Harbor: Turn on two-factor
A clickable two-step security flow: set up two-factor with a method picker, QR code and 6-digit code, then save backup codes and confirm before finishing.
- Category
- Security
- Platform
- Web
- Steps
- 2
Interactive flowClick through it, resize it, or switch states. It’s real UI, not a screenshot.
Step by step
2 steps, start to finish
Every screen in this flow, in the order people see it.
Step 1Harbor: Set up two-factor
Step 2 · FinishHarbor: Save backup codes
Use this flow
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/flows/harbor-turn-on-two-factor.json2. Use it
Every prop is optionalapp/page.tsx
import FlowHarbor2fa from "@/components/flow-harbor-2fa";
export default function Page() {
return <FlowHarbor2fa />;
}Prefer to paste it yourself? Open the .
Under the hood
How it’s built
What’s inside
- Plays the setup card then the backup codes page. The method chosen on step 1 (authenticator app, security key or text message) is carried to step 2, where the success line and method chip name it.
- Entering the demo code 246810 (or pressing 'Fill it in') verifies and opens step 2; Back returns to the setup card with the same method already selected; Finish on step 2, once the codes are confirmed saved, restarts the flow at step 1.
- A dark dock along the bottom edge (4.5rem tall; the screen above fills the rest of the viewport and toasts sit just above it) shows 1 Set up and 2 Backup codes with Harbor's light teal (#7fd4cf) on the active step dots and focus rings, a Back arrow and a Restart button.
How it behaves
- Choosing 'Security key', registering it and entering 246810 opens a backup codes page that says signing in asks you to tap your security key.
- Entering a wrong code keeps you on step 1 with a red error; the demo code moves on to step 2.
- Ticking 'I've saved these codes somewhere safe' and pressing Finish returns to step 1 with no method progress kept.
- Back from step 2 returns to the setup card with the previous method selected; Restart returns to the method picker.
- The step dock never covers the Finish button or the setup card's footer buttons at 375px.
Keep exploring

