--- ## RegisterPage Pre-built registration page with invitation-gated signup, password requirements checklist, and confirm field. Sends POST to `apiPath` (default `/api/auth/register`). Pair with `createRegisterHandler(authDeps)` on the server. **Import:** `import { RegisterPage } from '@urbicon-ui/auth';` ### Examples ```svelte goto('/')} /> ``` ### Api | Prop | Type | Required | Default | Description | | --- | --- | :---: | --- | --- | | apiPath | `string` | no | '/api/auth/register' | ApiPath property for the RegisterPage component | | class | `string` | no | | Extra classes on the root element. | | csrf | `CsrfClientOptions` | no | | CSRF cookie/header names — only needed when the server overrides the defaults via `config.csrf`. Mutating requests echo the token automatically. | | defaultEmail | `string` | no | '' | Pre-fills the email field. Pass the `?email=` query param from the invitation link (`createInvitationHandlers` builds `/auth/register?email=`) so an invited user lands on a ready-to-submit form instead of retyping — and a typo can't trigger the opaque "invitation required" 403. Following the same explicit-prop pattern as `ResetPasswordPage`/`VerifyEmailPage`'s `token`, read it from the page in your route (SSR-safe), e.g. `defaultEmail={page.url.searchParams.get('email') ?? ''}`. | | fetcher | `typeof globalThis.fetch` | no | | Custom fetch implementation for all API calls. Defaults to the global `fetch`. Useful for mock backends in demos/tests or custom retry/auth layers. | | footer | `Snippet` | no | | Content rendered below the form, above links (e.g. terms checkbox). | | header | `Snippet` | no | | Content rendered above the form (e.g. social login buttons). | | links | `Snippet` | no | | Replaces the link area. | | loginUrl | `string` | no | '/auth/login' | URL for the login page link. | | onSuccess | `() => void` | no | | Called after successful registration. | | passwordMinLength | `number` | no | 8 | Minimum password length. | | requireDigit | `boolean` | no | true | RequireDigit property for the RegisterPage component | | requireLowercase | `boolean` | no | true | Require lowercase letter. | | requireSpecial | `boolean` | no | false | Require special character. | | requireUppercase | `boolean` | no | true | Require uppercase letter. | | showRequirements | `boolean` | no | true | Show real-time password requirements checklist. | | slotClasses | `AuthPageSlotClasses` | no | | Per-slot class overrides. Keys: `root`, `card`, `title`, `form`, `field`, `submit`, `error`, `success`, `links`. | | t | `AuthLocale` | no | | Locale bundle. Auto-detected from i18n context when omitted. | | unstyled | `boolean` | no | | Strip all default styling. |