Check your e-mail

The sign-in card after a magic link was sent: where it went, how long it works, and resending it.

Open full screen

Inset · No navigation. <AppShell direction="inset">, the default: the navigation on the grey app frame, the page a raised white card inside it, scrolling within.

npx wideset add block-check-email

Import the default export from @/blocks/wideset/check-email. The files below are relative to your project's source directory.

Installed with this block
  • block-styles
  • button
  • toast
  • utils
blocks/wideset/check-email/index.tsx
'use client';

import '@/styles/wideset-blocks.css';

import { ToastProvider } from '@/components/ui/wideset/toast/Toast.context';

import { AuthCard } from './auth-card';
import { ROUTES } from './data';
import { LinkSent } from './link-sent';

/**
 * Check your e-mail, Inset direction with no navigation: the sign-in card after a magic sign-in
 * link was sent.
 */
export default function CheckEmail() {
  return (
    <ToastProvider position="bottom-center">
      <main className="ws-block-utility bg-ws-static-background p-ws-12 flex min-h-dvh items-center justify-center">
        <AuthCard
          other={{ href: ROUTES.signUp, label: 'Create account' }}
          className="w-full max-w-[38.75rem]"
        >
          <LinkSent />
        </AuthCard>
      </main>
    </ToastProvider>
  );
}