AuthPage
AuthPage — the web counterpart of native `AuthScreen`: a whole-screen, centred card for sign-in, sign-up, password reset, invite acceptance and email verification. ```tsx <AuthPage branding={{ logo: <Logo />, headline: "Sign in", subhead: "Welcome back." }} footer={<><a href="/reset">Forgot password?</a> · <a href="/sign-up">Create account</a></>} legal={<>By continuing you agree to the <a href="/terms">terms</a>.</>} aside={<img src={hero} alt="" />} > <SignInForm /> </AuthPage> ``` The card column is a `<main>` landmark and the headline is its single `<h1>`, so a screen reader lands on the form's purpose. The page fills the viewport (`min-height: 100dvh`) and the card shrinks to the screen with a 16px gutter, so nothing scrolls sideways at 375px. Native `AuthScreen` takes `form` and `providers` as data and renders its own `AuthForm`; this one is a **layout**, so the form and the provider buttons are nodes the app passes. Slots are the same contract: replace or drop (`null`) `branding`, `social` or `footer`.
packages/ui/src/components/layout/auth-page.tsx
@marktiderman/genesis-ui/layoutimport { AuthPage } from "@marktiderman/genesis-ui/layout";react-docgen-typescript.AuthPage
AuthPage — the web counterpart of native `AuthScreen`: a whole-screen, centred card for sign-in, sign-up, password reset, invite acceptance and email verification. ```tsx <AuthPage branding={{ logo: <Logo />, headline: "Sign in", subhead: "Welcome back." }} footer={<><a href="/reset">Forgot password?</a> · <a href="/sign-up">Create account</a></>} legal={<>By continuing you agree to the <a href="/terms">terms</a>.</>} aside={<img src={hero} alt="" />} > <SignInForm /> </AuthPage> ``` The card column is a `<main>` landmark and the headline is its single `<h1>`, so a screen reader lands on the form's purpose. The page fills the viewport (`min-height: 100dvh`) and the card shrinks to the screen with a 16px gutter, so nothing scrolls sideways at 375px. Native `AuthScreen` takes `form` and `providers` as data and renders its own `AuthForm`; this one is a **layout**, so the form and the provider buttons are nodes the app passes. Slots are the same contract: replace or drop (`null`) `branding`, `social` or `footer`.
| Prop | Type | Default | Description |
|---|---|---|---|
| branding* | AuthPageBrandingProps | — | Logo, headline (h1) and subhead above the card. |
| aside | ReactNode | — | A panel beside the card on wide screens (an illustration, a quote, a product shot). Hidden below the `lg` breakpoint, where the card is the whole page. |
| asidePosition | enum | end | Which side `aside` sits on. Default `"end"`. |
| children | ReactNode | — | The form: sign-in, sign-up, reset, invite acceptance, verify. The card's body. |
| footer | ReactNode | — | Below the card: "Forgot password?", "Create account". |
| legal | ReactNode | — | The small print under everything: terms and privacy. |
| slotProps | SlotPropsFor<AuthPageSlotMap> | {} | More props for a default part, merged over what the page passes. |
| slots | Slots<AuthPageSlotMap> | {} | Replace (a component) or drop (`null`) one part. |
| social | ReactNode | — | Sign-in provider buttons (Google, Apple…), above the form inside the card. |
| testID | string | auth-page | testID on the root. Default `"auth-page"`; parts use `${testID}-branding`, `-card`, `-social`, `-footer`, `-legal`, `-aside`. |