UI.MD

Auth Layout

A full sign-in screen: the brand at the top, the form centered in a narrow column on the page, and an optional panel beside it that sells the product.

Installation

$
npx shadcn@latest add https://ui.mattdowney.com/r/auth-layout.json

Usage

import { AuthLayout } from "@/components/ui/auth-layout"

Examples

Split screen

Brand, a bare AuthForm, a product panel and fine print. The panel shows from lg up; narrower, the form takes the screen. Put a crop of the product in the panel, built from kit parts.

Copperleaf

Sign in

Choose how you want to continue

or continue with
By signing in, you agree to the Terms.

Without a panel

Leave out aside and the form centers on the whole screen, with the brand still at the top left.

Copperleaf

Sign in

Choose how you want to continue

or continue with

API Reference

PropTypeDefaultDescription
childrenAuthLayoutReactNode-The form, usually <AuthForm surface="bare" />. Held in a column max-w-sm wide, centered in the space left over.
brandAuthLayoutReactNode-Top left of the form column. Usually the product's mark, linked home.
asideAuthLayoutReactNode-The panel beside the form, on an inset neutral panel one step off the page in each mode. Hidden below lg. Omit it and the form centers on the whole screen.
footerAuthLayoutReactNode-Fine print at the bottom of the form column. Anchors get the inline-link style.
classNameAuthLayoutstring-Applied to the root grid, which is min-h-svh.
childrenAuthLayoutReactNodeThe form, usually <AuthForm surface="bare" />. Held in a column max-w-sm wide, centered in the space left over.
brandAuthLayoutReactNodeTop left of the form column. Usually the product's mark, linked home.
asideAuthLayoutReactNodeThe panel beside the form, on an inset neutral panel one step off the page in each mode. Hidden below lg. Omit it and the form centers on the whole screen.
footerAuthLayoutReactNodeFine print at the bottom of the form column. Anchors get the inline-link style.
classNameAuthLayoutstringApplied to the root grid, which is min-h-svh.