shadcn.io is not affiliated with official shadcn/ui
Progress Steps Login Block for React
A three-step sign-in for a home lender: hairline cells across the top that fill as each step is done, one thin progress line with a time line, a different field for each step, and a finished page that ticks off three checks.
Installation
Overview
Make a sign-in feel short by showing how much is left, with this progress steps login block for React with Base UI. It's the sign-in of Loanmoor, home loans: the page's side rails run the full height of the screen and one band crosses it between two rules, holding a centred column. Over the panel sit three hairline cells, the catalog's Steps as Account, Password and Code, each with its number, filling with the text color as it's done; under them go one thin Progress line and a time line, "Step 1 of 3" and "About 20 seconds to go". Each step is a different field: an Input for the email, a Password Input with its eye to check what you typed, then a six-digit Input OTP that prints its demo code once. Back keeps what was typed in every step. The finished page ticks off three checks, and the Shine Button is the only colored control. It's built from Steps, Progress, Input, Password Input, Input OTP, Button, Shine Button and Guides, with CSS transitions only. For applications and sign-ins where a visitor wants to know how long it will take.
FAQ
What stays in the page, and what is the demo code?
Everything. Any address that looks like an email and any password get through the first two steps, and the code step accepts 482913, printed once under the field. Verifying waits less than a second, then the page shows three ticks (account found, password accepted, code verified) with a polite status message saying nothing was sent. In a product, check each answer with your server as it's given and keep the busy state until it answers.
Is the time estimate real?
No. "About 20 seconds to go" is typed text for each step (20, 15, then 5 seconds), not something the page measures. If you show an estimate, base it on how long your own visitors take and say "about"; if you can't, keep the progress line and drop the time line.
What does the progress line measure?
Steps reached, not time: it sits at 10, 40 and 70 percent on the three steps and fills at the end. It is decorative and hidden from screen readers, because the cells, the "Step 2 of 3" line and a polite message each time you move say the same thing in words.
What does Back keep?
Everything you typed. Back from the code returns to the password with it still in the field, and back again returns to the email; going forward, the code you had entered is still in its slots. Focus moves to the field of the step you land on, and a polite message says the step and that what you typed is kept.
Can I press a cell to jump to a step?
No. The cells are a read-only picture of where you are, with the current one marked for assistive technology and finished ones announced as "Done", so a visitor can't skip a step. Steps only advance with Continue and go back with Back.
How does it fit a phone?
The three cells stay three across, with the number over the name, and the progress line and time line sit under them in one row. Each panel is one field and one button, so the Continue button is on the first screen. The steps share one grid cell, so nothing moves when a step changes.
Related
- Pro
Multi Step Rail Login
Step by stepA three-step sign-in for a support desk: a vertical Steps rail at the start (Email, Password, Code) with what was given and an Edit button on each finished step, and the one panel of the step in hand at the end.
- Pro
Step Verification Accordion Login
Step by stepA sign-in for a clinic as an accordion of three sections: finishing one folds it to a one-line summary with a check and opens the next, sections after the open one are locked but reachable, and Edit reopens a finished one.
- Pro
Email First Sign In Login
Step by stepAn identifier-first sign-in for an invoicing app: one email field, a lookup against two typed accounts, then either the password step with the address kept as a badge or account creation with the address carried over.
- Pro
OTP Verification Login
Codes and approvalsA code step for a parcel locker app: a six-digit field that checks itself on the sixth digit or on a paste, counts wrong codes down from three, and a resend button that waits 30 seconds after it is pressed.
- Pro
Verify Identity Code Delivery Login
Codes and approvalsA verification step that asks where the code should go (text message, email or authenticator app), swaps to the code field once it is sent, and counts a limit of three codes an hour down with every send.
- Pro
Account Locked Login
Recovery and resetA locked-account page for a point-of-sale system that draws the lockout ladder, marks the rung the account is on with a fixed unlock time, and offers an unlock link by email or a password reset.