Genesis
@beta

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

Import
Subpath export: @marktiderman/genesis-ui/layout
import { AuthPage } from "@marktiderman/genesis-ui/layout";
Components
Auto-generated from TypeScript source via 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`.

PropTypeDefaultDescription
branding*AuthPageBrandingProps—Logo, headline (h1) and subhead above the card.
asideReactNode—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.
asidePositionenumendWhich side `aside` sits on. Default `"end"`.
childrenReactNode—The form: sign-in, sign-up, reset, invite acceptance, verify. The card's body.
footerReactNode—Below the card: "Forgot password?", "Create account".
legalReactNode—The small print under everything: terms and privacy.
slotPropsSlotPropsFor<AuthPageSlotMap>{}More props for a default part, merged over what the page passes.
slotsSlots<AuthPageSlotMap>{}Replace (a component) or drop (`null`) one part.
socialReactNode—Sign-in provider buttons (Google, Apple…), above the form inside the card.
testIDstringauth-pagetestID on the root. Default `"auth-page"`; parts use `${testID}-branding`, `-card`, `-social`, `-footer`, `-legal`, `-aside`.
Storybook
Storybook hosts the canonical visual reference with controls for every variant.