Genesis
@beta

AuthBranding

Auth primitive group (PRD-07 simplification #3). Auth flows are the most consumer-divergent screen in any app. Instead of shipping a god-component with a sea of variants, Genesis ships three small primitives that consumers compose on a regular `<View>`: - <AuthBranding> — slot for branded logo + headline + subhead - <SocialAuthRow> — provider buttons (Apple / Google / GitHub / …) - <AuthForm> — email + password (or magic link) + submit Composition lives in `apps/<consumer>/...` — see `standards/usage-doctrine.md` § Auth composition for worked examples.

packages/ui-native/src/layouts/auth.tsx

Import
Subpath export: @marktiderman/genesis-ui-native
import { AuthBranding } from "@marktiderman/genesis-ui-native";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

AuthBranding

PropTypeDefaultDescription
classNamestring—Override the root container styling.
headlinestring—Headline text. Renders as h1.
logoReactNode—Brand mark (logo node).
subheadstring—Subhead under the headline. Renders as muted body.
testIDstringauth-branding

SocialAuthRow

PropTypeDefaultDescription
providers*SocialAuthProvider[]—
classNamestring—Override root container styling.
separatorstring | nullorOptional separator label rendered between social row and the form below (e.g., "or"). Pass `null` to suppress. Default `"or"`.
testIDstringsocial-auth-row

AuthForm

PropTypeDefaultDescription
onSubmit*(values: AuthFormValues) => void | Promise<void>—Submit handler. Receives the current form values.
belowFieldsReactNode—Slot rendered AFTER the inputs but BEFORE the submit (e.g., "Forgot password" link).
classNamestring—Override root container styling.
errorMessagestring—Top-level error (set by the consumer after a server-side rejection, e.g., "Invalid credentials"). Shown above the submit button.
initialEmailstringInitial email. Useful for "log in as <user>" deep links.
loadingboolean—When true, submit button is disabled and shows a busy indicator.
modeenumpassword`"password"` (default) renders email + password. `"magic-link"` renders email only and the submit button label defaults to "Send magic link".
submitLabelstring—Override the submit button label.
testIDstringauth-form
validate((values: AuthFormValues) => string | null)—Optional validation slot — return `null` to allow submission, or a string error message to block. Called on every submit.

ForgotPasswordLink

PropTypeDefaultDescription
onPress*() => void—
labelstringForgot password?
testIDstringauth-forgot-password