A working auth wireframe kit: sign in, sign up, reset, check-your-email and a six-box code step, with real validation, pending and failed states beside a brand-art slot.
React
免费
页面地址: /
下方还有更多 ↓
内置
你能得到
浅色和深色使用你的主题颜色
桌面端、平板和手机为这些屏幕设计
依赖包…
代码大小…
每次修改都会检查
类型检查TypeScript 严格模式
代码检查与格式化ESLint · Prettier
测试与构建浅色和深色截图
安全审计无高危或严重漏洞通告
依赖包发布时间每个版本都已公开 7 天以上
空闲 CPU静止时不到半个核心,≤ 30 fps
代码
这个线框图有什么不对劲吗? 发送反馈 ›
sign-in-wireframeReact
sign-in-wireframe.tsxcomponentThe component: import this one into your page.
check-email-page.tsxpartThe check-your-email page (/check-email): where the link went, resend with a cooldown, and the ways back.
code-input.tsxpartSix code boxes: typing moves on, Backspace goes back, arrows move, and a pasted code fills every box.
field.tsxpartParts every auth page shares: the page heading, a labelled field with help and error, the form error and the "or" rule.
forgot-password-page.tsxpartThe forgot-password page (/forgot-password): one email field; once the link is sent it moves on to /check-email.
password-input.tsxpartA password field with a show/hide toggle (aria-pressed) inside its right edge.
providers-slot.tsxpartThe providers slot: one button per other sign-in method, the last one used marked; placeholder buttons without data.
resend-button.tsxpartResend: sends again through an async action, then waits out a cooldown before it can be pressed again.
sample-data.tsxpartSample data in the shapes the slots take, for a team notes app: replace it with yours, or delete it.
sign-in-page.tsxpartThe sign-in page (/sign-in): email and password first, the other methods below, links to reset and sign up.
sign-up-page.tsxpartThe sign-up page (/sign-up): name, email and a new password with live rules, the other methods below.
slot.tsxpartOne wireframe slot: a labelled dashed box with ready, loading, empty and error looks, plus the shared classes.
submit-button.tsxpartThe form's main button: says it's working while pending (and can't be pressed twice), then a check when done.
use-form-action.tspartA form's send: pending while the async action runs, failed when it throws, done when it resolves.
verify-page.tsxpartThe two-step page (/verify): a six-digit code that sends itself when full, clears on a wrong code, and can be resent.
appappNext.js route files: shadcn add puts each one at the same path in your app/.
(auth)(auth)Next.js route files: shadcn add puts each one at the same path in your app/.
check-emailcheck-emailNext.js route files: shadcn add puts each one at the same path in your app/.
page.tsxrouteThe check-your-email route: pass CheckEmailPage the email and resendAction.
forgot-passwordforgot-passwordNext.js route files: shadcn add puts each one at the same path in your app/.
page.tsxrouteThe forgot-password route: pass ForgotPasswordPage resetAction; it goes on to /check-email.
sign-insign-inNext.js route files: shadcn add puts each one at the same path in your app/.
page.tsxrouteThe sign-in route: pass SignInPage signInAction, and providers with providerAction.
sign-upsign-upNext.js route files: shadcn add puts each one at the same path in your app/.
page.tsxrouteThe sign-up route: pass SignUpPage signUpAction, and providers with providerAction.
verifyverifyNext.js route files: shadcn add puts each one at the same path in your app/.
page.tsxrouteThe two-step code route: pass VerifyPage verifyAction and resendAction.
layout.tsxrouteEvery auth page inside the wireframe layout: logo, the page, the legal line and the brand-art panel.
sign-in-wireframe.tsx
The component: import this one into your page.
正在加载…
适用场景
Adding sign-in to a new web app: give it to your AI agent with your auth library and it wires the actions and fills the slots.
工作原理
Links move between the five auth routes. Forms check what was typed, show progress and keep values when the action fails; the code boxes take typing, arrows, Backspace and a pasted code.
使用方法
Read the note at the top of sign-in-wireframe.tsx: render AuthLayout in app/(auth)/layout.tsx and pass each page its async actions.