Accept invitation
Joining a workspace from an invitation in the sign-in card: who invited you, the workspace and creating your account.
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-accept-invite
Import the default export from @/blocks/wideset/accept-invite. The files below are relative to your project's source directory.
Installed with this block
avatarblock-stylesbuttoncheckboxform-fieldtext-inpututils
blocks/wideset/accept-invite/index.tsx
'use client';
import '@/styles/wideset-blocks.css';
import { AuthCard } from './auth-card';
import { ROUTES } from './data';
import { InviteForm } from './invite-form';
/**
* Accept an invitation, Inset direction with no navigation: the sign-up card, opened from an
* invitation, with the inviter, the workspace and the role above the form.
*/
export default function AcceptInvite() {
return (
<main className="ws-block-utility bg-ws-static-background p-ws-12 flex min-h-dvh items-center justify-center">
<AuthCard
other={{ href: ROUTES.signIn, label: 'Sign in' }}
className="w-full max-w-[38.75rem]"
>
<InviteForm />
</AuthCard>
</main>
);
}