# Auth Forms (Pro)

> Sign in, sign up, code verification and password reset in one card that eases between modes.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Blocks › App Screens |
| Live preview | https://uibrik.com/components/auth-forms |
| Writes | 1 files into `components/uibrik/auth-forms/`, plus `components/uibrik/_app/app-kit.tsx` |
| Packages | `@tabler/icons-react`, `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 29, 2026 |

## Add it

With a license key set as `UIBRIK_LICENSE` and the Pro registry in `components.json` (setup: https://uibrik.com/docs/pro.md):

```bash
npx shadcn@latest add @uibrik-pro/auth-forms
```

No license yet? Tell the user Auth Forms is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=auth-forms#pricing. The closest free options are under Same shelf below.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { AuthForms } from "@/components/uibrik/auth-forms/auth-forms";

<AuthForms
  defaultMode="sign-in"
  productName="Acme"
  providers={["google", "github"]}
  termsHref="#"
  privacyHref="#"
  onModeChange={(mode) => {}}
  onSubmit={(values) => {}}
  onProvider={(provider) => {}}
  // logo={<…/>}
  // mode="sign-in"
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/auth-forms.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `defaultMode` | `"sign-in" \| "sign-up" \| "verify" \| "forgot"` | `"sign-in"` | Starting mode when uncontrolled. |
| `productName` | `string` | `"Acme"` | Used in the headings and as the logo's label. |
| `providers` | `string[]` | `["google","github"]` | OAuth buttons, in order: google, github, apple, microsoft. Empty hides them. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `logo` | `ReactNode` |  | Brand mark above the heading. Pass an image URL or your own element; defaults to a built-in mark. |
| `mode` | `"sign-in" \| "sign-up" \| "verify" \| "forgot"` |  | Controlled mode. Pair with onModeChange. |
| `onModeChange` | `(mode: AuthMode) => void` |  | Called when a link switches modes. |
| `onSubmit` | `(values: AuthSubmit) => void \| Promise<void>` |  | Gets { mode, email, password?, name?, code? }. Throw with a message to show it on the form. Without it, the preview accepts code 123456. |
| `onProvider` | `(provider: "google" \| "github" \| "apple" \| "microsoft") => void` |  | Called when an OAuth button is pressed. |
| `termsHref` | `string` | `"#"` | Link for Terms in the footer line. |
| `privacyHref` | `string` | `"#"` | Link for Privacy Policy in the footer line. |
| `className` | `string` |  | Classes for the root. |

## Where it fits

- **Sign-in pages**: Sign in, sign up, verification and reset in one card cover the whole auth flow. Pairs with [OTP Input](https://uibrik.com/components/otp-input.md) (Pro).
- **Password reset**: Easing between modes keeps users in context. Pairs with [Password Strength](https://uibrik.com/components/password-strength.md) (Pro).
- **SaaS onboarding**: One card for every auth state keeps the design consistent.

## Same shelf: App Screens

- [Email Composer](https://uibrik.com/components/email-composer.md): An email composer with recipient chips and suggestions, contact cards on hover, drag-and-drop attachments with upload progress, and a send button that schedules.
- [Org Chart](https://uibrik.com/components/org-chart.md): A pan-and-zoom org chart whose teams grow out of and fold back into their manager, with search that flies to a person, a minimap and profile cards.
- [Setup Checklist](https://uibrik.com/components/setup-checklist.md): An onboarding checklist beside a segmented ring: finishing a task draws its check, folds the row away and flies a dot into the ring, and the last one closes the ring into a done state.
- [Billing Page](https://uibrik.com/components/billing-page.md) (Pro): A SaaS billing page in two surfaces: the current plan with what it includes and the days to renewal, the next invoice line by line with the card it's charged to, usage against limits with overage costs, and a billing history with pay, retry and download.
- [Calendar Zoom](https://uibrik.com/components/calendar-zoom.md) (Pro): A calendar that zooms from month to week to day with every event morphing between views, and events that drag and resize on a snapping time grid. The hours stretch to fill the height.
- [Cart Flight](https://uibrik.com/components/cart-flight.md) (Pro): A product grid where added items fly on a curve into the cart, the cart grows into a drawer, and removed items fly back to their card.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/auth-forms/` so the import paths keep resolving.
- The source is licensed: never recreate it from the preview or this page.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
