39 Pro components and page blocks

Get Pro

Auth Forms

New

Preview

Customize

Sign in

Usage

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

<AuthForms />

Installation

npx shadcn@latest add https://uibrik.com/r/auth-forms.json
Adds the files to components/uibrik/auth-forms and installs @tabler/icons-react and motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/auth-forms.

Props

AuthForms
defaultMode
Type "sign-in" | "sign-up" | "verify" | "forgot"
"sign-in"
Starting mode when uncontrolled.
productName
Type string
"Acme"
Shown on the shell and in the headings.
providers
Type string[]
["google","github"]
OAuth buttons, in order: google, github, apple, microsoft. Empty hides them.
mode
Type "sign-in" | "sign-up" | "verify" | "forgot"
–
Controlled mode. Pair with onModeChange.
onModeChange
Type (mode: AuthMode) => void
–
Called when a link switches modes.
onSubmit
Type (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
Type (provider: "google" | "github" | "apple" | "microsoft") => void
–
Called when an OAuth button is pressed.
termsHref
Type string
"#"
Link for Terms in the footer line.
privacyHref
Type string
"#"
Link for Privacy Policy in the footer line.
className
Type string
–
Classes for the root.