SignUp
Styled registration form with social providers and hosted sign-up redirect.
The <SignUp> component renders a registration card that redirects users to Wocha hosted sign-up. It shares the same styling and layout system as <SignIn>.
Installation
pnpm add @wocha/ui @wocha/reactOr scaffold with the CLI
npx @wocha/cli init --framework nextjsBasic usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
redirectUrl | string | — | URL to redirect to after successful registration |
organisation | string | — | Organisation ID hint for the hosted registration page |
providers | SocialProvider[] | ["google", "github", "microsoft", "apple"] | Social sign-up buttons to display |
appearance | WochaAppearance | — | Visual customisation for this component |
withCard | boolean | true | Wrap content in AuthCard with default branding |
title | ReactNode | "Create your account" | Card title override |
description | ReactNode | "Get started…" | Card description override |
buttonLabel | string | "Continue with email" | Primary button label |
className | string | — | Additional class name on the root element |
fallback | ReactNode | — | Shown while auth context is loading |
Layout options
Theming
Framework notes
| Framework | Provider setup |
|---|---|
| React SPA | WochaProvider + WochaThemeProvider |
| Next.js App Router | WochaSessionProvider + WochaThemeProvider sdk="nextjs" |