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-nativeimport { AuthBranding } from "@marktiderman/genesis-ui-native";Components
Auto-generated from TypeScript source via
react-docgen-typescript.AuthBranding
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — | Override the root container styling. |
| headline | string | — | Headline text. Renders as h1. |
| logo | ReactNode | — | Brand mark (logo node). |
| subhead | string | — | Subhead under the headline. Renders as muted body. |
| testID | string | auth-branding |
SocialAuthRow
| Prop | Type | Default | Description |
|---|---|---|---|
| providers* | SocialAuthProvider[] | — | |
| className | string | — | Override root container styling. |
| separator | string | null | or | Optional separator label rendered between social row and the form below (e.g., "or"). Pass `null` to suppress. Default `"or"`. |
| testID | string | social-auth-row |
AuthForm
| Prop | Type | Default | Description |
|---|---|---|---|
| onSubmit* | (values: AuthFormValues) => void | Promise<void> | — | Submit handler. Receives the current form values. |
| belowFields | ReactNode | — | Slot rendered AFTER the inputs but BEFORE the submit (e.g., "Forgot password" link). |
| className | string | — | Override root container styling. |
| errorMessage | string | — | Top-level error (set by the consumer after a server-side rejection, e.g., "Invalid credentials"). Shown above the submit button. |
| initialEmail | string | Initial email. Useful for "log in as <user>" deep links. | |
| loading | boolean | — | When true, submit button is disabled and shows a busy indicator. |
| mode | enum | password | `"password"` (default) renders email + password. `"magic-link"` renders email only and the submit button label defaults to "Send magic link". |
| submitLabel | string | — | Override the submit button label. |
| testID | string | auth-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
| Prop | Type | Default | Description |
|---|---|---|---|
| onPress* | () => void | — | |
| label | string | Forgot password? | |
| testID | string | auth-forgot-password |